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.
https://github.com/hextheshadow/PoC-Exploit
https://github.com/libexpat/libexpat/pull/1278
https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-38189
https://cert-portal.siemens.com/productcert/html/ssa-457936.html