# CVE-2025-46656: markdownify allows large headline prefixes such as <h9999999>, which causes memory consumption

- Severity: Low 2.9 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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.22%, higher than 13% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-26T00:00:00.000Z
- Modified: 2026-07-07T17:56:59.962Z
- Also known as: GHSA-7mpr-5m44-h73r, PYSEC-2026-1604
- Weaknesses: CWE-1284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- python-markdownify python-markdownify: before 0.14.1
- markdownify (PyPI): before 0.14.1
- matthewwithanm markdownify: before 0.14.1

## Every score

- mitre: CVSS:3.1 2.9 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 2.9 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 2.9 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/matthewwithanm/python-markdownify/issues/143> (exploit, web)
- <https://github.com/matthewwithanm/python-markdownify/compare/0.14.0...0.14.1> (patch, 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)

## Sources

- CVE List: [CVE-2025-46656](https://www.cve.org/CVERecord?id=CVE-2025-46656), CVE Terms of Use, modified 2025-04-29
- GitHub Advisory Database: [GHSA-7mpr-5m44-h73r](https://github.com/advisories/GHSA-7mpr-5m44-h73r), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-46656](https://nvd.nist.gov/vuln/detail/CVE-2025-46656), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1604](https://osv.dev/vulnerability/PYSEC-2026-1604), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-46656 · Whole record: https://cve.day/CVE-2025-46656.json · Rebuilt by cve.day 2026-11-25T22:58:56.944Z
