Vulnerability · Published Jan 11, 2021 · Assigned by GitHub_M

CVE-2020-26298Injection in Redcarpet

Medium 6.8

In plain English

A medium-severity injection in redcarpet from vmg. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)1.6%top 24.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ruby-redcarpet3.5.1-1DEBIAN-CVE-2020-26298
Debian:13ruby-redcarpet3.5.1-1DEBIAN-CVE-2020-26298
Debian:14ruby-redcarpet3.5.1-1DEBIAN-CVE-2020-26298
RubyGemsredcarpet3.5.1GHSA-q3wr-qw3g-3p4h

Affected products (as reported)

VendorProductVersions
vmg redcarpet < 3.5.1

Weakness: CWE-74, CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N

References