Live threats

All CVEs / Redcarpet Project

CVE-2020-26298Redcarpet Project Redcarpet

Medium 5.4

Priority
33
CVSS 3.1
5.4
EPSS
1.6%
probability of exploitation in 30 days · percentile 76
Auth required
Yes
Published
Jan 11, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74, CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Redcarpet.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems redcarpet < 3.5.1 3.5.1 gem "redcarpet", ">= 3.5.1"

Per OSV / GitHub Advisories (GHSA-q3wr-qw3g-3p4h). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
redcarpet_projectredcarpet< 3.5.1
debiandebian_linux9.0
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.