LiveActive security incident?Get immediate response
CVE Record

CVE-2020-26298: Injection in Redcarpet

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.

MediumCVSS 6.8Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Redcarpet versions before 3.5.1 can fail to escape HTML while rendering Markdown quotes, allowing cross-site scripting. The risk matters where untrusted users can submit Markdown that other users view. It is not a server takeover issue in the sources, but it can let attackers alter page content or run script in a victim’s browser.

Executive priority

Treat as a targeted remediation item for applications rendering user-supplied Markdown. Prioritize internet-facing or multi-user platforms first. The issue has a clear fixed version and no cited active exploitation, so urgency is moderate unless sensitive workflows depend on Markdown rendering.

Technical view

CVE-2020-26298 affects vmg redcarpet before 3.5.1. Quote processing did not perform HTML escaping, even with :escape_html enabled. The CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N, consistent with authenticated or low-privilege stored/reflected XSS requiring victim interaction.

Likely exposure

Exposure is likely in Ruby applications that use redcarpet below 3.5.1 to render user-controlled Markdown, such as comments, profiles, issue text, documentation portals, CMS fields, or admin-entered content later viewed in a browser.

Exploitation context

The sources do not report active exploitation, and KEV is false. Exploitation requires Markdown input reaching vulnerable quote rendering and a victim viewing the rendered output. The main documented impact is browser-side script injection affecting content integrity.

Researcher notes

The key detail is that escaping failed specifically during quote processing, including when :escape_html was enabled. Validate exposure by tracing user-controlled Markdown to redcarpet rendering paths and confirming the deployed library version. Avoid assuming other Markdown processors are affected from these sources.

Mitigation direction

  • Upgrade redcarpet to version 3.5.1 or later.
  • Use patched Debian or Fedora ruby-redcarpet packages where applicable.
  • Do not rely on :escape_html in affected versions.
  • Check vendor and distribution guidance for supported package-specific fixes.
  • Reduce rendering of untrusted Markdown until affected deployments are patched.

Validation and detection

  • Inventory application and system packages for redcarpet versions below 3.5.1.
  • Review Gemfile.lock and deployed runtime images for bundled redcarpet versions.
  • Identify routes that render user-controlled Markdown in browsers.
  • Confirm patched versions are present in production after deployment.
  • Verify security tests cover Markdown quote rendering with HTML escaping enabled.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-74: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2020-26298 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
10Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.8CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N2.34Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.8Medium
CVSS 3.1 vector shape for CVE-2020-26298Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
vmgredcarpet< 3.5.1Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.