# CVE-2026-44896: Mistune: XSS via unescaped figclass/figwidth in Figure directive

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-05-08T23:43:12.000Z
- Modified: 2026-09-10T03:51:04.581Z
- Also known as: GHSA-58cw-g322-p94v, PYSEC-2026-168
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Mistune is a Python Markdown parser with renderers and plugins. In 3.2.0 and earlier, in src/mistune/directives/image.py, the render_figure() function concatenates figclass and figwidth options directly into HTML attributes without escaping. This allows attribute injection and XSS even when HTMLRenderer(escape=True) is used, because these values bypass the inline renderer. Version 3.2.1 contains a patch.

(As written by CVE List.)

## Affected

- lepture mistune: < 3.2.1
- mistune (PyPI): before 3.2.1
- mistune_project mistune: up to 3.2.0

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/lepture/mistune/security/advisories/GHSA-58cw-g322-p94v> (advisory, vendor-advisory, web)
- <https://github.com/lepture/mistune/commit/a3cb6e5655308797e8be021d6c7b5bab13cbace2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44896> (advisory)
- <https://github.com/lepture/mistune> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-168.yaml> (web)

## Sources

- CVE List: [CVE-2026-44896](https://www.cve.org/CVERecord?id=CVE-2026-44896), CVE Terms of Use, modified 2026-06-08
- GitHub Advisory Database: [GHSA-58cw-g322-p94v](https://github.com/advisories/GHSA-58cw-g322-p94v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-44896](https://nvd.nist.gov/vuln/detail/CVE-2026-44896), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-168](https://osv.dev/vulnerability/PYSEC-2026-168), CC-BY-4.0, modified 2026-05-29

---

Page: https://cve.day/CVE-2026-44896 · Whole record: https://cve.day/CVE-2026-44896.json · Rebuilt by cve.day 2026-11-25T22:59:22.383Z
