In libexpat before 2.8.2, there is a heap-based buffer overflow in doProlog in xmlparse.c because scaffold backing array reallocation is mishandled when there is data-structure sharing across parsers.
https://github.com/libexpat/libexpat/pull/1272
https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-37977
https://cert-portal.siemens.com/productcert/html/ssa-457936.html