---
id: CVE-2026-115351
title: Mistune 3.2.1 before 3.3.0 CSS Injection via Figure Directive figwidth Option
summary: >-
  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 app…
severity: medium
cvss: 4.7
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-94
  - CWE-79
vendor: lepture
product: mistune
affected:
  - mistune >= 3.2.1 < 3.3.0
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-29T11:52:50.353872Z'
exploitAvailable: true
published: '2026-10-22'
updated: '2026-10-29'
sourceUpdated: '2026-10-29T11:53:14.490Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-115351'
references:
  - url: 'https://github.com/lepture/mistune/security/advisories/GHSA-xmwc-wjpr-q378'
    label: GitHub Security Advisory (GHSA-xmwc-wjpr-q378)
  - url: >-
      https://www.vulncheck.com/advisories/mistune-3.2.1-before-3.3.0-css-injection-via-figure-directive-figwidth-option
    label: >-
      VulnCheck Advisory: Mistune 3.2.1 before 3.3.0 CSS Injection via Figure
      Directive figwidth Option
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-115351.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-115351'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2559369'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-115351'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-115351'
tags:
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
epss: 0.00221
epssPercentile: 0.12724
ingestedAt: '2026-10-22T22:00:50.396Z'
---

## Overview

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.

## Affected

- `mistune >= 3.2.1 < 3.3.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Container Platform 4 · updated 2026-10-23 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-115351.json)
