# CVE-2020-26298: Injection in Redcarpet

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.59%, higher than 76% of CVEs (2026-12-01)
- Published: 2021-01-11T00:00:00.000Z
- Modified: 2026-07-08T05:59:45.900Z
- Also known as: GHSA-q3wr-qw3g-3p4h
- Weaknesses: CWE-74, CWE-79
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- vmg redcarpet: < 3.5.1
- redcarpet (RubyGems): before 3.5.1
- redcarpet_project redcarpet: before 3.5.1
- debian debian_linux: 9.0; 10.0

## Every score

- GitHub_M: CVSS: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: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/advisories/GHSA-q3wr-qw3g-3p4h> (advisory, third-party-advisory)
- <https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793> (patch, third-party-advisory, web)
- <https://rubygems.org/gems/redcarpet> (product, third-party-advisory, web)
- <https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security> (release-notes, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html> (mailing-list, third-party-advisory, web)
- <https://www.debian.org/security/2021/dsa-4831> (third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26298> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/redcarpet/CVE-2020-26298.yml> (web)
- <https://github.com/vmg/redcarpet> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI> (web)

## Sources

- CVE List: [CVE-2020-26298](https://www.cve.org/CVERecord?id=CVE-2020-26298), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-q3wr-qw3g-3p4h](https://github.com/advisories/GHSA-q3wr-qw3g-3p4h), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-26298](https://nvd.nist.gov/vuln/detail/CVE-2020-26298), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26298 · Whole record: https://cve.day/CVE-2020-26298.json · Rebuilt by cve.day 2026-11-25T22:57:56.975Z
