Cross-site Scripting (XSS) Affecting ruby-redcarpet package, versions <3.3.4-2+deb9u1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.08% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN9-RUBYREDCARPET-1059337
  • published13 Jan 2021
  • disclosed11 Jan 2021

Introduced: 11 Jan 2021

CVE-2020-26298  (opens in a new tab)
CWE-79  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade Debian:9 ruby-redcarpet to version 3.3.4-2+deb9u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-redcarpet package and not the ruby-redcarpet package as distributed by Debian. See How to fix? for Debian:9 relevant fixed versions and status.

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.

CVSS Scores

version 3.1