Libexpat Project Libexpat vulnerabilities

70 vulnerabilities

Known vulnerabilities in Libexpat Project Libexpat, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.

RoutineCVE-2026-128241libexpat project · libexpat +26 morelibexpat xmlwf through 2.10.0 Symlink Following via -d Output DirectoryThe xmlwf tool in libexpat through 2.10.0 contains a symlink following vulnerability because -d output mode opens files with fopen("wb"), which follows symbolic links. Local attackers with write access to the output directory can plant a symlink at the expected output name to truncate or overwrite files writable by the xmlwf user.CVSS4.4MediumEPSS0.15%PrioritiseCVE-2026-118370libexpat +19 morelibexpat through 2.9.0 Integer Overflow in storeAtts via attIndex and nPrefixeslibexpat through 2.9.0 contains a signed integer overflow vulnerability in storeAtts() in lib/xmlparse.c that allows attackers to trigger out-of-bounds writes via oversized attribute counts. Attackers can supply a multi-gigabyte document with a start tag carrying over 2^30 attributes to overflow attIndex and nPrefixes, crashing applications or corrupting heap memory.CVSS8.2HighEPSS0.51%PrioritiseCVE-2026-117610libexpat +19 morelibexpat through 2.9.0 NULL Pointer Dereference via External Entity Subparserlibexpat through 2.9.0 contains a NULL pointer dereference vulnerability in externalEntityInitProcessor2() in lib/xmlparse.c that mishandles the XML_TOK_NONE token from empty input. Attackers who control stream chunking can force an empty non-final first parse on an external entity subparser, causing a later parse to crash the application.CVSS8.2HighEPSS0.54%PrioritiseCVE-2026-115506libexpat +27 morelibexpat through 2.9.0 Denial of Service via Billion Laughs Detection Delaylibexpat through 2.9.0 contains a denial of service vulnerability because billion laughs protection in accountingDiffTolerated() in xmlparse.c detects entity amplification too late. Attackers can supply a moderately sized XML document with a large DTD and nested entity expansions to consume tens of seconds of CPU per parse.CVSS8.7HighEPSS0.47%PrioritiseCVE-2026-113351libexpat +27 morelibexpat 2.7.2 through 2.9.0 Denial of Service via XML_ParserResetlibexpat 2.7.2 through 2.9.0 contains a denial of service vulnerability because XML_ParserReset zeroes the direct byte count but never offsets tracked heap allocations. Attackers can submit a large XML document so later documents on the same reset parser fail with XML_ERROR_NO_MEMORY until it is recreated.CVSS8.2HighEPSS0.49%RoutineCVE-2026-76957libexpat project · libexpat +18 morelibexpat project libexpatlibexpat before 2.8.4 lacks handler call depth tracking with custom encoding callbacks. Thus, a use-after-free can occur. NOTE: this is similar to CVE-2026-50219, CVE-2026-56131 and CVE-2026-56412.CVSS7.8HighEPSS0.15%RoutineCVE-2026-76956libexpat project · libexpat +17 morelibexpat project libexpatIn libexpat 2.8.2 and 2.8.3 before 2.8.4, misinterpretation of getentropy's return code leads to insufficient entropy, which results in being vulnerable to hash flooding attacks, causing a denial of service via crafted XML content.CVSS7.5HighEPSS0.29%PrioritiseCVE-2026-66046libexpat project · libexpat +17 moreExpat Denial of Service via storeAtts() Quadratic ComplexityExpat through 2.8.3 contains a denial of service vulnerability caused by quadratic algorithmic complexity in the storeAtts() function in xmlparse.c, where processing N specified attributes with non-normalized values triggers an O(N^2) linear scan of elementType->defaultAtts to determine CDATA status. A remote unauthenticated attacker can supply a single well-formed XML document of a few megabytes to an application parsing untrusted XML to cause excessive CPU consumption, resulting in denial of service without requiring authentication, external entity resolution, or non-default parser options.CVSS8.7HighEPSS0.99%RoutineCVE-2026-72522libexpat project · libexpat +20 morelibexpat project libexpatlibexpat before 2.8.3 has an out-of-bounds read and resultant infinite loop because low surrogates are treated the same as high surrogates during Unicode processing in the *_toUtf16 functions.CVSS6.2MediumEPSS0.19%RoutineCVE-2026-56412libexpat project · libexpat +26 morelibexpat project libexpatlibexpat 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.CVSS5.9MediumEPSS0.19%RoutineCVE-2026-56411libexpat project · libexpat +26 morelibexpat project libexpatxmlwf in libexpat before 2.8.2 has an integer overflow in endDoctypeDecl via NOTATION declarations.CVSS6.9MediumEPSS0.19%RoutineCVE-2026-56410libexpat project · libexpat +26 morelibexpat project libexpatxmlwf in libexpat before 2.8.2 has an integer overflow in resolveSystemId.CVSS6.9MediumEPSS0.19%RoutineCVE-2026-56409libexpat project · libexpat +26 morelibexpat project libexpatxmlwf in libexpat before 2.8.2 has an integer overflow for the output filename when -d outputDir is used.CVSS6.5MediumEPSS0.18%RoutineCVE-2026-56408libexpat project · libexpat +26 morelibexpat project libexpatlibexpat before 2.8.2 has an integer overflow in copyString.CVSS6.9MediumEPSS0.18%RoutineCVE-2026-56407libexpat project · libexpat +26 morelibexpat project libexpatlibexpat before 2.8.2 has an integer overflow in doProlog that is related to storeEntityValue and entity textLen.CVSS6.9MediumEPSS0.19%RoutineCVE-2026-56406libexpat project · libexpat +26 morelibexpat project libexpatlibexpat before 2.8.2 has an integer overflow in XML_ParseBuffer because it lacked a check that was present in XML_Parse.CVSS6.9MediumEPSS0.19%RoutineCVE-2026-56405libexpat project · libexpat +26 morelibexpat project libexpatlibexpat before 2.8.2 has an integer overflow in getAttributeId.CVSS6.9MediumEPSS0.18%RoutineCVE-2026-56404libexpat project · libexpat +26 morelibexpat project libexpatlibexpat before 2.8.2 has an integer overflow in addBinding.CVSS6.9MediumEPSS0.19%RoutineCVE-2026-56403libexpat project · libexpat +26 morelibexpat project libexpatlibexpat before 2.8.2 has an integer overflow in storeAtts.CVSS6.9MediumEPSS0.18%RoutineCVE-2026-56132libexpat project · libexpat +25 morelibexpat project libexpatIn 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.CVSS6.9MediumEPSS0.16%