Skip to main content
Vulnerability Database/CVE-2026-92877

CVE-2026-92877: JAXB XML External Entity (XXE) Vulnerability

CVE-2026-92877 is an XML External Entity flaw in JAXB that allows attackers to read local files when untrusted XML is processed. This post explains its technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-92877 Overview

CVE-2026-92877 is an XML External Entity (XXE) vulnerability [CWE-611] in the Eclipse JAXB Reference Implementation. The JAXB factory methods historically relied solely on FEATURE_SECURE_PROCESSING to prevent external entity resolution. On Java API for XML Processing (JAXP) implementations where that feature alone does not block external entity resolution, an attacker who gets untrusted XML unmarshalled through JAXB can read local files via out-of-band XXE.

Critical Impact

Attackers can exfiltrate arbitrary local files from systems that unmarshal attacker-controlled XML through JAXB, with no authentication or user interaction required.

Affected Products

  • Eclipse JAXB Reference Implementation (jaxb-ri)
  • Applications using JAXB factory methods on JAXP implementations where FEATURE_SECURE_PROCESSING does not block external entity resolution
  • Downstream Java applications and services that unmarshal untrusted XML via JAXB

Discovery Timeline

  • 2026-10-12 - CVE-2026-92877 published to the National Vulnerability Database (NVD)
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-92877

Vulnerability Analysis

The Jakarta XML Binding (JAXB) library maps XML documents to Java objects through unmarshalling. The reference implementation configured its underlying XML parsers by enabling FEATURE_SECURE_PROCESSING and assumed this flag alone was sufficient to disable XML External Entity resolution.

This assumption does not hold across all JAXP providers. Some implementations treat FEATURE_SECURE_PROCESSING as a limit on resource consumption rather than a hard block on external entity dereferencing. When JAXB runs on such a provider, external entity references inside unmarshalled XML are resolved by the parser.

An attacker who controls XML input processed by Unmarshaller.unmarshal() can declare external entities that reference files on the local filesystem or attacker-controlled URLs. The parser dereferences those entities, enabling out-of-band exfiltration of file contents through DNS or HTTP callbacks.

Root Cause

The root cause is incomplete XML parser hardening in JAXB factory methods. The code relied on a single feature flag instead of explicitly disabling http://xml.org/sax/features/external-general-entities, http://xml.org/sax/features/external-parameter-entities, and DOCTYPE declarations. See the GitHub Pull Request Update for the fix that enforces these parser properties directly.

Attack Vector

Exploitation requires an attacker to supply XML content to a Java application that unmarshals it through JAXB. The malicious XML contains a DOCTYPE declaration defining an external entity pointing to a local file (for example, file:///etc/passwd) and a parameter entity that transmits the file contents to an attacker-controlled server. Because the exfiltration path is out-of-band, the attacker does not need to observe the application's response directly. Full technical context is available in the Eclipse Security CVE Assignment.

Detection Methods for CVE-2026-92877

Indicators of Compromise

  • Outbound DNS queries or HTTP requests from Java application servers to unexpected external domains, originating during XML processing
  • XML payloads in application logs containing <!DOCTYPE declarations, <!ENTITY definitions, or SYSTEM identifiers referencing file://, http://, or ftp:// URIs
  • Unexpected reads of sensitive filesystem paths such as /etc/passwd, /proc/self/environ, or application configuration files by the JVM process

Detection Strategies

  • Inspect dependency manifests for vulnerable versions of org.glassfish.jaxb:jaxb-runtime and related JAXB RI artifacts using software composition analysis tools
  • Instrument XML parsing code paths to log DOCTYPE and external entity declarations in received payloads
  • Correlate Java process network egress with XML unmarshalling operations to identify out-of-band resolution attempts

Monitoring Recommendations

  • Alert on JVM processes initiating network connections to domains not in an allowlist, particularly during request processing
  • Monitor filesystem access patterns from application server processes and flag reads of credential or configuration files
  • Capture and review inbound XML payloads at API gateways for entity declarations that indicate XXE probing

How to Mitigate CVE-2026-92877

Immediate Actions Required

  • Upgrade JAXB RI to the patched release that enforces external entity restrictions directly in factory methods
  • Audit application code for calls to JAXBContext.newInstance() and Unmarshaller.unmarshal() that process untrusted XML
  • Where feasible, pre-validate XML inputs with a hardened parser configuration before passing them to JAXB

Patch Information

The fix is tracked in the Eclipse JAXB RI repository via the GitHub Pull Request Update. The patch explicitly disables external general entities, external parameter entities, and DOCTYPE processing on the parsers created by JAXB factory methods rather than relying on FEATURE_SECURE_PROCESSING alone. Coordination details are in the Eclipse Security CVE Assignment.

Workarounds

  • Configure a custom SAXParserFactory or XMLInputFactory with external entity processing disabled and supply it to JAXB through a SAXSource
  • Set http://apache.org/xml/features/disallow-doctype-decl to true on parsers used upstream of JAXB unmarshalling
  • Reject XML payloads containing DOCTYPE declarations at the application boundary when they are not required by the schema
bash
# Example parser hardening properties for upstream XML validation
http://apache.org/xml/features/disallow-doctype-decl=true
http://xml.org/sax/features/external-general-entities=false
http://xml.org/sax/features/external-parameter-entities=false
http://apache.org/xml/features/nonvalidating/load-external-dtd=false

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.