Advisory record · GHSA-v87v-83h2-53w7

Mistune Heading ID Attribute has Injection XSS

CVSS 6.1 MediumEPSS 0.0023 · 13th percentile

Published by the GitHub Advisory Database at 9 May 2026, 00:13 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
mistunePyPI<3.2.13.2.1
Identifiers
GHSA-v87v-83h2-53w7 · CVE-2026-44897 · PYSEC-2026-2207
Weakness (CWE)
CWE-79
Published
9 May 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GHSA-v87v-83h2-53w7 affects the mistune package before 3.2.1. The HTML renderer inserts the heading `id` attribute value without escaping it, so when a custom `heading_id` callback returns raw heading text, an attacker who controls that text can break out of the attribute and add event handlers, which can lead to script execution in a user's browser. Upgrade to mistune 3.2.1 or later. Until then, do not use a `heading_id` callback that returns unsanitised heading text.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.1 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0023, the 13th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:29 UTC First seen by agentprime
  2. 31 Oct 2026, 14:29 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.