PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2020-26298: 
Ruby vulnerability analysis and mitigation

Overview

Redcarpet, a Ruby library for Markdown processing, was found to contain an injection vulnerability (CVE-2020-26298) before version 3.5.1. The vulnerability was discovered and reported by Johan Smits, and the issue was disclosed on January 11, 2021. The vulnerability affects all versions of Redcarpet prior to 3.5.1, impacting systems using the library for Markdown to HTML conversion (GitHub Advisory).

Technical details

The vulnerability stems from improper HTML escaping when processing quotes, even when the :escape_html option was enabled. This security flaw could enable cross-site scripting (XSS) attacks. The issue has been assigned a CVSS v3.1 base score of 6.8 (Medium), with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N (NVD).

Impact

The vulnerability could allow attackers to execute cross-site scripting (XSS) attacks through specially crafted input, potentially leading to the injection of malicious code into web applications using the Redcarpet library. This could result in unauthorized data manipulation or execution of arbitrary code in the context of the affected web application (GitHub Advisory).

Exploitability

The vulnerability requires an attacker to have the ability to input markdown content that is processed by the Redcarpet library. The attack vector is network-accessible and requires low attack complexity, though it does need user interaction and low privileges to execute (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Redcarpet version 3.5.1. Users are strongly advised to upgrade to this version or later. The fix involves proper HTML escaping when processing quotes with the :escape_html option enabled (Redcarpet Changelog, GitHub Patch).

Community reactions

Multiple Linux distributions have released security advisories and patches for this vulnerability, including Debian with DSA-4831-1 and DLA-2526-1, and Fedora with updates for versions 36, 37, and 38 (Debian Security, Fedora Update).

Additional resources


Source: This report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-9h43-g84r-c93mHIGH7.4
  • Ruby logoRuby
  • doorkeeper-openid_connect
NoYesOct 21, 2026
GHSA-wgw9-qhqg-8hv5MEDIUM5.3
  • Ruby logoRuby
  • sanitize
NoYesOct 21, 2026
GHSA-pq4g-8rxf-4g29MEDIUM5.3
  • Ruby logoRuby
  • crass
NoYesOct 21, 2026
GHSA-c62j-746x-gfcrMEDIUM4.8
  • Ruby logoRuby
  • doorkeeper
NoYesOct 21, 2026
GHSA-c8r6-23w7-5q9pLOWN/A
  • Ruby logoRuby
  • doorkeeper
NoNoOct 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management