CVE-2025-46656
LOW 3.3CVSS 3.1markdownify allows large headline prefixes such as <h9999999>, which causes memory consumption
python-markdownify (aka markdownify) before 0.14.1 allows large headline prefixes such as <h9999999> in addition to <h1> through <h6>. This causes memory consumption.
- Published
- 26 Apr 2025
- Last modified
- 7 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-1284
- Also known as
- GHSA-7mpr-5m44-h73rPYSEC-2026-1604
- Sources
- NVDJSONOSV GHSA-7mpr-5m44-h73rJSONOSV PYSEC-2026-1604JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | LOW 2.9 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 2.9 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | PyPA | CVSS 3.1 | LOW 2.9 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | matthewwithanm | markdownifycpe:2.3:a:matthewwithanm:markdownify:*:*:*:*:*:python:*:* |
< 0.14.1 | 0.14.1 |
| OSV | PyPI | markdownify | < 0.14.1 | 0.14.1 |
References
- https://github.com/matthewwithanm/python-markdownify/compare/0.14.0...0.14.1 · Patch, WEB
- https://github.com/matthewwithanm/python-markdownify/issues/143 · Exploit, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-46656 · ADVISORY
- https://github.com/matthewwithanm/python-markdownify/commit/959561879693bf4a576f99c6733b50b01186aa08 · WEB
- https://github.com/matthewwithanm/python-markdownify · PACKAGE
- https://pypi.org/project/markdownify · PACKAGE
- https://github.com/advisories/GHSA-7mpr-5m44-h73r · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 26 Apr 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 Apr 2025)