GitHub Advisoryadvisory · RubyGems

GHSA-q3wr-qw3g-3p4h Injection/XSS in Redcarpet

MEDIUM Published 2021-01-11 Modified 2022-10-07 Official page ↗
Aliases
CVE-2020-26298
Ecosystem
RubyGems
Packages
redcarpet
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
Weaknesses
CWE-74, CWE-79
Reviewed
2021-01-11

Affected packages

• RubyGems redcarpet: < 3.5.1 → fixed in 3.5.1

Description

Redcarpet is a Ruby library for Markdown processing. In Redcarpet before version 3.5.1, there is an injection vulnerability which can enable a cross-site scripting attack. In affected versions no HTML escaping was being performed when processing quotes. This applies even when the `:escape_html` option was being used. This is fixed in version 3.5.1 by the referenced commit.

Related

Alias · CVE (1)

  • CVE-2020-26298 Redcarpet is a Ruby library for Markdown processing. vulnerability

Weakness · CWE (2)

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References