XSS in Redcarpet Project
CVE-2020-26298
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.8 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.016, 76.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Redcarpet Project
- Vmg Redcarpet — versions < 3.5.1
- Debian Linux — versions 9.0, 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (Live-Hack-CVE/CVE-2020-26298). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/advisories/GHSA-q3wr-qw3g-3p4h (Third Party Advisory)
- github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793 (Patch, Third Party Advisory)
- rubygems.org/gems/redcarpet (Product, Third Party Advisory)
- github.com/vmg/redcarpet/blob/master/CHANGELOG.md (Third Party Advisory, Release Notes)
- [debian-lts-announce] 20210115 [SECURITY] [DLA 2526-1] ruby-redcarpet security update (mailing-list, Mailing List, Third Party Advisory)
- DSA-4831 (vendor-advisory, Third Party Advisory)
- FEDORA-2023-597f13ffb9 (vendor-advisory)
- FEDORA-2023-8682a0e17d (vendor-advisory)
- FEDORA-2023-44daa9c1d4 (vendor-advisory)