Read the docs

CSS injection in Mistune figure directive figwidth option

Priority MEDIUM 57CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
Low · None · None
Fix status
Partial Red Hat: 2 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-94.

Summary

Mistune from 3.2.1 before 3.3.0 is affected. The figwidth option of the figure directive is not validated, so CSS injection (CWE-94) lets an attacker who controls markdown input add arbitrary style declarations to the rendered figure's style attribute. A crafted declaration such as background:url() makes a victim's browser send requests to attacker servers and leak attribute values when the user views the rendered page.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

Description from the CNA

Mistune from 3.2.1 before 3.3.0 contains a CSS injection vulnerability that allows attackers controlling markdown input to inject arbitrary style declarations via the unvalidated figwidth option of the figure directive. Attackers can append declarations like background:url() to the rendered figure style attribute, forcing victim browsers to send requests to attacker servers and leak attribute values.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00221 12th percentileScored 2026-11-07
Fix Partial mistune (lepture): 3.3.0Red Hat: 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
lepturemistune3.2.1 to before 3.3.03.3.0Patch availableCNA
  • mistune Vendorlepture Affected 3.2.1 to before 3.3.0 Fixed in 3.3.0 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:*——lepture
  • cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:* Versions — — ·lepture

Remediation

Upgrade Mistune to version 3.3.0. Red Hat has no fix available for Red Hat OpenShift AI (RHOAI) and Red Hat OpenShift Container Platform 4.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

  • Fix · CNA mistune (lepture) Fixed in 3.3.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    lepture mistune 3.3.0

    9 records Highest priority Priority HIGH 1 HIGH, 7 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2026-79440 Path traversal in Mistune include directive lets attackers read filesPriority HIGH 79
    • TI-2026-79441 Path traversal in Mistune lets attackers read local filesPriority MEDIUM 64
    • TI-2026-79442 Path traversal and XSS in Mistune Include directivePriority MEDIUM 44

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet: Fix deferred
Red Hat OpenShift Container Platform 4AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-22 Threatist record created from CVE-2026-115351
  2. 2026-10-22 Alias added: GHSA-2jmw-jfgq-rw98
  3. 2026-10-23 Affected versions changed · Red Hat
  4. 2026-10-23 CVSS score added · Red Hat
  5. 2026-10-29 CISA SSVC decision points changed
  6. 2026-10-29 Priority changed: LOW → MEDIUM

References

  • TI-2026-79440 Path traversal in Mistune include directive lets attackers read files CVSS 4.0CRITICAL 9.2
  • TI-2026-36755 Mistune: Potential DoS via quadratic-time parsing in parse_link_text CVSS 4.0HIGH 8.7
  • TI-2026-25521 Mistune ReDoS in LINK_TITLE_RE allows denial of service with crafted Markdown titles CVSS 4.0HIGH 8.7
  • TI-2026-53257 Mistune has Denial of Service — RecursionError via Excessive Emphasis Markers in Markdown CVSS 3.1HIGH 7.5
  • TI-2026-42736 Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions CVSS 3.1HIGH 7.5
  • TI-2026-42730 Regular expression denial of service in lepture mistune CVSS 3.1HIGH 7.5
See all 30 →

Sources