Skip to content
Heist/ feed
Medium

Mistune 3.2.1 before 3.3.0 CSS Injection via Figure Directive figwidth Option

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-115351

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-115351

mistune

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "lepture",
    "product": "mistune",
    "versions": [
      {
        "status": "affected",
        "version": "3.2.1",
        "lessThan": "3.3.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "3.3.0",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:pypi/mistune",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-115351

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#52316 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement