Cross-site Scripting (XSS) Affecting ruby-redcarpet package, versions <3.5.1-1


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
1.59% (75th 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 IDSNYK-DEBIANUNSTABLE-RUBYREDCARPET-1059339
  • 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:unstable ruby-redcarpet to version 3.5.1-1 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:unstable 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 Base Scores

version 3.1