CVE-2020-26298
Injection in Redcarpet
- State
- Published
- Severity
- 6.8 Medium
- Published
- Jan 11, 2021
- Updated
- Feb 13, 2025
- Reserved
- Oct 1, 2020
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.8 Medium | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N | GitHub_M |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
redcarpetvmg |
|
References
- https://github.com/advisories/GHSA-q3wr-qw3g-3p4h
- https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793
- https://rubygems.org/gems/redcarpet
- https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security
- [debian-lts-announce] 20210115 [SECURITY] [DLA 2526-1] ruby-redcarpet security updatemailing-list
- DSA-4831vendor-advisory
- FEDORA-2023-597f13ffb9vendor-advisory
- FEDORA-2023-8682a0e17dvendor-advisory
- FEDORA-2023-44daa9c1d4vendor-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.