CVE-2020-26298

Injection in Redcarpet

Published Jan 11, 2021 CVSS 3.1 · 6.8 Medium EPSS 1.6% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2526-1 ruby-redcarpet security update
Debian DSA Debian DSA DSA-4831-1 ruby-redcarpet security update
EUVD EUVD EUVD-2021-0511 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.
Github GHSA Github GHSA GHSA-q3wr-qw3g-3p4h Injection/XSS in Redcarpet
History

No history.

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 13, 2025, 4:27 PM
Reserved
Oct 1, 2020, 12:00 AM
Status
Modified
Published
Jan 11, 2021, 7:15 PM
Modified
Jun 17, 2026, 3:08 AM
Severity
Moderate
Public date
Jan 11, 2021, 12:00 AM