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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-redcarpet | 3.5.1-1 | DEBIAN-CVE-2020-26298 |
| Debian:13 | ruby-redcarpet | 3.5.1-1 | DEBIAN-CVE-2020-26298 |
| Debian:14 | ruby-redcarpet | 3.5.1-1 | DEBIAN-CVE-2020-26298 |
| RubyGems | redcarpet | 3.5.1 | GHSA-q3wr-qw3g-3p4h |
Affected products (as reported)
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
- 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 update mailing-list
- DSA-4831 vendor-advisory
- FEDORA-2023-597f13ffb9 vendor-advisory
- FEDORA-2023-8682a0e17d vendor-advisory
- FEDORA-2023-44daa9c1d4 vendor-advisory