CVE-2026-50219 Use after free in libexpat

Medium 4.9 Published Updated

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-50219?

CVE-2026-50219 is a medium-severity use after free vulnerability in Libexpat Project Libexpat, published on 4 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_GetBuffer, XML_Parse, XML_ParseBuffer, XML_ParserFree, or XML_ParserReset from within handlers in cases of a policy violation. Thus, a use-after-free can occur,

Weakness: CWE-416

Which versions are affected by CVE-2026-50219?

It affects 1 product.

Products include Libexpat Project Libexpat.

How do I fix CVE-2026-50219?

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

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

All Libexpat Project Libexpat vulnerabilities

Sources

Also known as ALPINE-CVE-2026-50219, AZL-89372, BELL-CVE-2026-50219, DEBIAN-CVE-2026-50219, ECHO-d2db-9152-3e07, GHSA-v3cw-2f3g-f38x and 4 more.

Is CVE-2026-50219 in your software?

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

Check your SBOMs for free