CVE-2026-76957 Use after free in libexpat

Medium 4.9 Published Updated

A use-after-free vulnerability in libexpat allows attackers to potentially 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-76957?

CVE-2026-76957 is a medium-severity use after free vulnerability in Libexpat Project Libexpat, published on 20 Aug 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.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.

Weakness: CWE-416

Which versions are affected by CVE-2026-76957?

It affects 1 product.

Products include Libexpat Project Libexpat.

How do I fix CVE-2026-76957?

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-76957 being exploited?

There is no known exploitation of CVE-2026-76957 in the wild and no public exploit code.

All Libexpat Project Libexpat vulnerabilities

Sources

Also known as ALPINE-CVE-2026-76957, AZL-96851, BELL-CVE-2026-76957, CLSA-2026-1789046411, CLSA-2026-1789203877, CLSA-2026-1789395602 and 8 more.

Is CVE-2026-76957 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free