CWE
74 79
Advisory Published
Advisory Published
Updated

CVE-2020-26298: Injection in Redcarpet

First published: Mon Jan 11 2021(Updated: )

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.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
rubygems/redcarpet<3.5.1
3.5.1
Redcarpet Project Redcarpet<3.5.1
Debian Debian Linux=9.0
Debian Debian Linux=10.0
debian/ruby-redcarpet
3.4.0-4+deb10u1
3.5.1-1
3.6.0-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2020-26298?

    CVE-2020-26298 is a vulnerability in the Redcarpet Ruby library that allows for a cross-site scripting attack.

  • How does CVE-2020-26298 affect Redcarpet?

    CVE-2020-26298 allows for HTML injection in Redcarpet, potentially enabling a cross-site scripting attack.

  • What is the severity of CVE-2020-26298?

    The severity of CVE-2020-26298 is rated as medium, with a severity value of 6.8.

  • How can I fix CVE-2020-26298?

    To fix CVE-2020-26298, update Redcarpet to version 3.5.1 or later.

  • Where can I find more information about CVE-2020-26298?

    You can find more information about CVE-2020-26298 on the following references: [link 1](https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793), [link 2](https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security), [link 3](https://rubygems.org/gems/redcarpet).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203