MEDIUM6.8
GHSA-q3wr-qw3g-3p4h
Injection/XSS in Redcarpet
Quick fix
GHSA-q3wr-qw3g-3p4h — redcarpet: upgrade to the fixed version with the command below.
bundle update redcarpetDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-26298[ADVISORY]
- https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793[WEB]
- https://github.com/advisories/GHSA-q3wr-qw3g-3p4h[ADVISORY]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/redcarpet/CVE-2020-26298.yml[WEB]
- https://github.com/vmg/redcarpet[PACKAGE]
- https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security[WEB]
- https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html[WEB]
- 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]
- https://rubygems.org/gems/redcarpet[WEB]
- https://www.debian.org/security/2021/dsa-4831[WEB]