CVE-2026-56412

published 21 Jun 2026 · updated 16 Nov 2026

libexpat before 2.8.2 does not consider XML_TOK_DATA_CHARS in doCdataSection and thus lacks handler call depth tracking for various calls from within handlers in cases of a policy violation. Thus, a use-after-free can occur. NOTE: this issue exists because of an incomplete fix for CVE-2026-50219.

4.9MediumCVSS 4.9EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.8.2.

libexpat before 2.8.2 does not consider XML_TOK_DATA_CHARS in doCdataSection and thus lacks handler call depth tracking for various calls from within handlers in cases of a policy violation. Thus, a use-after-free can occur. NOTE: this issue exists because of an incomplete fix for CVE-2026-50219.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
libexpat projectlibexpat<2.8.22.8.2
libexpat project<2.8.22.8.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-56412 severity on Zeptric[![CVE-2026-56412](https://zeptric.io/badge/cve/CVE-2026-56412.svg)](https://zeptric.io/cve/CVE-2026-56412)