libexpat is the small C XML parser that Python’s xml.etree and pyexpat, Apache httpd, D-Bus and a long tail of other software on every Linux distribution link against, and in every release up to and including 2.11.0 its defineAttribute() in lib/xmlparse.c fails to notice when a document’s internal DTD subset declares the same non-ID #IMPLIED or #REQUIRED attribute again and again. Each repeated ATTLIST declaration adds another entry, and the attribute store, storeAtts(), then does quadratic work on every element that follows, so a small crafted document costs the parsing process a great deal of CPU. There is no fixed release yet: the fix is open as pull request #1537 against the 2.12.0 milestone, so watch your distribution’s expat package, and until it ships reject documents carrying a <!DOCTYPE wherever untrusted XML is parsed. This page will be updated when the release lands.
CVE-2026-137992 at a glance.
| Component | libexpat (Expat), defineAttribute() and storeAtts() in lib/xmlparse.c; packaged as libexpat1 / expat on every distribution and bundled by some applications. Reached through anything that parses XML with Expat: CPython’s pyexpat and xml.etree, Apache httpd’s mod_dav, D-Bus and many more |
| Affected versions | every libexpat release up to and including 2.11.0 (the record’s range runs from 0); 2.11.0 of 23 November 2026 is the newest release and is affected |
| Fixed in | No release yet as of 30 November 2026. The fix is pull request #1537, “lib: Fix incomplete attribute list duplicate detection” (commit accaab5 by maintainer Sebastian Pipping, opened 27 November 2026, still open, milestone 2.12.0, labels bug and security). Debian lists every release as unfixed |
| Severity | VulnCheck (CNA) CVSS 4.0 8.7 High (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H) and CVSS 3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H); NVD Awaiting Analysis with the same vectors. No distribution rating readable on 30 November (Red Hat, SUSE, Ubuntu and Alpine pages all refused). CWE-407, inefficient algorithmic complexity |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026 (catalogue 2026.11.27). EPSS: no score yet on 30 November 2026 |
| Who is exposed | any process that parses attacker-supplied XML through Expat and lets the parser read the document’s internal DTD subset, which is the default; the attacker needs only to get the document parsed. Denial of service only: CPU time, not memory corruption. Software that uses libxml2 instead of Expat (lxml, most of GNOME) is not on this path |
| Published | CVE record 27 November 2026 (VulnCheck CNA; credit Bartłomiej Dmitruk, who reported it to the project as @hackerman70000); this page built 30 November 2026, last updated 30 November 2026 |
What it is
An XML document may carry its own DTD inline, the internal subset between the square brackets of <!DOCTYPE … [ … ]>, and an ATTLIST declaration there tells the parser which attributes an element type has and what their defaults are. Expat records each declaration with defineAttribute(), and that function is supposed to recognise a declaration it has already seen so that the element’s attribute list stays one entry per attribute. The record says it “fails to detect duplicate non-ID #IMPLIED or #REQUIRED attribute declarations”: the ID-typed and defaulted cases are caught, the plain ones are not, so a document that repeats the same declaration ten thousand times gives the element type ten thousand entries. When the parser then meets an element of that type, storeAtts() walks the whole list for each attribute it stores, and the work grows with the square of the list.
The attacker’s document is small, because a repeated declaration compresses to almost nothing and the elements that trigger the walk can be short, and the effect is a parser that takes seconds or minutes over a file that should take microseconds. That is the whole of it: no memory is written out of bounds, and the three scores in the box, from the CNA, all record availability as the only impact. The pull request’s title, “Fix incomplete attribute list duplicate detection”, describes the fix: make the duplicate check complete. It references an earlier commit, 39cfb55, as related, which suggests this is the second attempt at the same guard, though the pull request’s page gives no prose beyond that.
Expat has been in this position before this year. Its 2.11.0 release of 23 November 2026 fixed three CVEs, 2.9.0 in October fixed two, and the project’s Changes file still opens with a notice that Expat “has UNFIXED SECURITY ISSUES” and points at issue #1160, where this one is cross-referenced; the maintainer’s work is funded until January 2027 by the City of Munich’s open-source sabbatical. The practical consequence for a Linux administrator is that the library is patched by the distributions more often than by a new upstream release, and the Debian and Red Hat tracker rows below are the ones to watch, not the GitHub releases page.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one. Only Debian’s tracker answered, and it has nothing fixed to report yet.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker unreachable on 30 November 2026 | — |
| Debian | Vulnerable in every release, no fix anywhere (bug #1155562); bookworm 2.5.0-1+deb12u5, trixie 2.9.0-1~deb13u1, forky 2.11.0-1, sid 2.11.0-2 all listed vulnerable | (unfixed) on 30 November 2026 |
| Ubuntu | Tracker unreachable on 30 November 2026 | — |
| RHEL, Rocky, Alma, CentOS Stream | Security-data feed unreachable on 30 November 2026 | — |
| openSUSE/SLE, Fedora, Arch | SUSE page unreachable on 30 November 2026; others not consulted | — |
| Upstream libexpat and software that bundles it (static builds, language runtimes with a vendored copy) | Affected at every release through 2.11.0 | none released; pull request #1537, milestone 2.12.0 |
How to check
Three questions: which Expat is installed, which running processes have it loaded, and which of those parse XML from outside with DTD processing left on. The first two are mechanical; the third is where the exposure actually is, and only you know which services take XML from strangers.
# 1. the installed library: anything up to 2.11.0 is affected until your distribution ships a patched build
dpkg -l libexpat1 2>/dev/null | awk '/^ii/{print $2, $3}'; rpm -q expat 2>/dev/null; apk info -v expat 2>/dev/null
python3 -c 'import pyexpat; print("pyexpat built against Expat", pyexpat.EXPAT_VERSION)'
# 2. who has it loaded right now (the exposed processes are among these)
grep -l libexpat /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | xargs -r ps -o pid=,comm= 2>/dev/null | sort -u -k2
# 3. the precondition: those processes parse XML from untrusted sources with the default parser settings
# (Python's xml.etree / xml.dom / xml.sax, httpd mod_dav, SOAP and XML-RPC endpoints, feed readers)
grep -rnE 'xml\.etree|xml\.dom|xml\.sax|pyexpat|defusedxml' --include='*.py' /srv /opt /var/www 2>/dev/null | head
apachectl -M 2>/dev/null | grep -i davUntil a fixed build exists, step 1 will say “affected” everywhere, so the question that matters is step 3. A process with libexpat loaded that only ever parses its own configuration files is a patching chore for later. A web service that accepts XML uploads, WebDAV clients, SOAP or XML-RPC calls, or Atom and RSS feeds from the open internet, and hands them to a default Expat parser, is the exposed case: one request can tie up a worker for as long as the attacker likes. Python code that already routes untrusted input through defusedxml is in better shape, since that library refuses documents with a DTD before Expat sees the declarations.
How to fix it
There is nothing to install yet. When your distribution ships a patched libexpat1 or expat, upgrade it and restart every process that has the library mapped; a shared library already loaded stays old until the process restarts, and the list from step 2 above is the restart list. Applications that bundle their own Expat need their own rebuild.
# when the fixed package appears
apt update && apt install --only-upgrade libexpat1 2>/dev/null || dnf upgrade expat 2>/dev/null || apk upgrade expat
# every process from step 2 keeps the old copy until restarted; the lazy way is a reboot, the careful way is this list
grep -l libexpat /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | xargs -r ps -o pid=,unit= 2>/dev/null | awk '{print $2}' | sort -uUntil then the mitigation is to keep DTDs away from the parser where the input is untrusted. The bug lives in the declarations inside <!DOCTYPE, so a document without one cannot reach it, and almost no legitimate data-interchange XML carries an internal subset. Reject such documents before parsing, or in Python use defusedxml, which does exactly that. Do not mistake the usual advice about external entities for a fix here: disabling external entity loading, or running without network access, does nothing, because the declarations that cost the CPU are inline in the document and need no fetch.
# a cheap gate in front of any Expat-based parser: refuse documents with an inline DTD
# Python
# if b'<!DOCTYPE' in data[:4096]: raise ValueError('DTD not accepted')
# or route everything through defusedxml, which refuses DTDs by default
pip install defusedxml # then: from defusedxml.ElementTree import fromstring
# shell-side check of a file before handing it on
grep -c '<!DOCTYPE' /path/to/upload.xmlSources
- CVE-2026-137992 at CVE.org — the VulnCheck CNA record (27 November 2026): the description, the “through 2.11.0” range, CVSS 4.0 8.7 and 3.1 7.5, CWE-407, the credit, and the link to the vulnerable lines of
xmlparse.cat R_2_11_0 - libexpat pull request #1537 — the fix, open against milestone 2.12.0 on 30 November 2026; the Changes file for the 2.11.0 release of 23 November 2026 and the unfixed-issues notice
- VulnCheck advisory — the CNA’s own write-up, 27 November 2026
- NVD entry — Awaiting Analysis; the CNA vectors, no CPE configuration yet
- Distribution trackers: Debian (unfixed, bug #1155562) · Ubuntu · Red Hat · SUSE · Alpine (the last four unreachable on 30 November 2026)
- EPSS — no score for this CVE on 30 November 2026
Related reading
- CVE-2026-134703: libexpat passes isolated UTF-16 high surrogates to application handlers (
cve-2026-134703-libexpat-utf16-surrogate, forthcoming) — fixed in 2.11.0, the release this one is not in - CVE-2026-139881: libexpat accepts insufficient entropy from a short read of /dev/urandom (
cve-2026-139881-libexpat-urandom-short-read, forthcoming) — published the same day as this page was built, same library - CVE-2026-111497: Brotli decoder writes past its buffer on a crafted compressed stream — the other small C library this autumn that everything links and nobody lists
- How a Program Runs — why a shared library already in memory is not replaced by the package upgrade
- The Half of Patching That Happens After the Patch is Installed — finding the processes that still hold the old library
This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

