In libexpat before 2.7.4, XML_ExternalEntityParserCreate does not copy unknown encoding handler user data.
https://www.cisa.gov/news-events/ics-advisories/icsa-26-155-04
https://github.com/libexpat/libexpat/pull/1131
https://cert-portal.siemens.com/productcert/html/ssa-253495.html