Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Redcarpet Project | Redcarpet | < 3.5.1 |
| Debian | Debian Linux | 9.0 |
Related Weaknesses (CWE)
References
- https://github.com/advisories/GHSA-q3wr-qw3g-3p4hThird Party Advisory
- https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-securityRelease NotesThird Party Advisory
- https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793PatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/01/msg00014.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://rubygems.org/gems/redcarpetProductThird Party Advisory
- https://www.debian.org/security/2021/dsa-4831Third Party Advisory
- https://github.com/advisories/GHSA-q3wr-qw3g-3p4hThird Party Advisory
- https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-securityRelease NotesThird Party Advisory
- https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793PatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/01/msg00014.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
FAQ
What is CVE-2020-26298?
CVE-2020-26298 is a vulnerability with a CVSS score of 6.8 (MEDIUM). 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...
How severe is CVE-2020-26298?
CVE-2020-26298 has been rated MEDIUM with a CVSS base score of 6.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2020-26298?
Check the references section above for vendor advisories and patch information. Affected products include: Redcarpet Project Redcarpet, Debian Debian Linux.