CVE-2026-56131 Use after free in libexpat
A use-after-free vulnerability in libexpat allows attackers to execute arbitrary code or cause denial of service via crafted XML input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-56131?
CVE-2026-56131 is a medium-severity use after free vulnerability in Libexpat Project Libexpat, published on 19 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
libexpat before 2.8.2 lacks handler call depth tracking for calls to XML_ResumeParser from within handlers in cases of a policy violation. Thus, a use-after-free can occur (similar to the CVE-2026-50219 situation).
Weakness: CWE-416
Which versions are affected by CVE-2026-56131?
It affects 1 product.
Products include Libexpat Project Libexpat.
How do I fix CVE-2026-56131?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2026-56131 being exploited?
There is no known exploitation of CVE-2026-56131 in the wild and no public exploit code.
Other vulnerabilities in Libexpat Project Libexpat
Sources
Also known as ALPINE-CVE-2026-56131, AZL-90258, BELL-CVE-2026-56131, CLSA-2026-1786033457, CLSA-2026-1786109033, CLSA-2026-1786112354 and 7 more.