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

CVE-2026-88789: Apache Camel Quarkus XXE Vulnerability

CVE-2026-88789 is an XML External Entity vulnerability in Apache Camel Quarkus that enables attackers to read local files or access internal networks. This article covers technical details, affected versions, and mitigation.

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-88789 Overview

CVE-2026-88789 is an XML External Entity (XXE) vulnerability [CWE-611] in the XSLT support extension (camel-quarkus-support-xalan) of Apache Camel Quarkus. The flaw affects versions from 3.2.0 before 3.33.3 and from 3.34.0 before 3.40.0. An attacker who supplies the XML document being transformed can read local files or issue requests to internal network locations through an external entity declaration. The extension supplies its own Xalan-backed TransformerFactory and registers it as the JAXP default, so other application code calling TransformerFactory.newInstance() also loses external access restrictions silently.

Critical Impact

Unauthenticated attackers can exfiltrate local file contents and pivot to internal network resources via crafted XML input to XSLT transformations.

Affected Products

  • Apache Camel Quarkus 3.2.0 through 3.33.2 (camel-quarkus-xslt, camel-quarkus-xslt-saxon, camel-quarkus-tika, camel-quarkus-xmlsecurity)
  • Apache Camel Quarkus 3.34.0 through 3.39.x
  • Any application loading camel-quarkus-support-xalan on the classpath

Discovery Timeline

  • 2026-10-01 - CVE CVE-2026-88789 published to NVD
  • 2026-10-01 - Last updated in NVD database

Technical Details for CVE-2026-88789

Vulnerability Analysis

The XSLT support extension installs a Xalan-J 2.7.x TransformerFactory as the JAXP default. Xalan-J 2.7.x predates JAXP 1.5 and does not honour javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD or ACCESS_EXTERNAL_STYLESHEET. The external access restrictions Apache Camel normally applies to its TransformerFactory are therefore inactive. Any XML document reaching the transformer as a javax.xml.transform.Source is parsed without entity restrictions.

Bodies of other types such as String, byte[], or InputStream are converted to a SAXSource by Apache Camel with external entities and external DTD loading disabled, and are not affected on the xslt component path. The exposure broadens because registering the factory as the JAXP default means unrelated code in the same application that calls TransformerFactory.newInstance() inherits the unrestricted factory without any error or warning.

Root Cause

The root cause is the mismatch between Xalan-J 2.7.x and the JAXP 1.5 contract. The extension relies on Xalan-J for ahead-of-time translet compilation required by Quarkus native mode. Because Xalan rejects the external access attributes with setAttribute, Camel's standard hardening did not apply. The secure-processing feature in Xalan restricts extension functions but does not imply the external access restrictions the JDK applies under the same feature.

Attack Vector

An attacker supplies an XML document containing an external entity declaration or SYSTEM reference in a DOCTYPE. When the body arrives at the transformer already as a Source, for example after convertBodyTo(Source.class) or from a component that produces one, the entity is resolved. The attacker can then read local files reachable by the process user or coerce outbound HTTP requests to internal services, enabling SSRF.

text
* Documents being transformed are parsed with an `XMLReader` that does not resolve external entities or load
external DTDs, so a `SYSTEM` entity in a `DOCTYPE` declaration does not expand into the result, and an external
DTD or parameter entity is skipped. A `SAXSource` carrying an `XMLReader` the caller configured is used as it is.
* Resources fetched at transform time by the `document()` function are denied unless a
`javax.xml.transform.URIResolver` resolves them.

Source: GitHub Commit 9dd11779 — this is the patch documentation describing the hardened XMLReader behavior.

Detection Methods for CVE-2026-88789

Indicators of Compromise

  • Inbound XML payloads containing <!DOCTYPE> declarations with SYSTEM identifiers referencing file://, http://, or ftp:// URIs targeting internal hosts.
  • Unexpected outbound network connections from the Camel Quarkus JVM to internal IP ranges or metadata endpoints such as 169.254.169.254.
  • Application logs showing XSLT transformation of bodies previously converted via convertBodyTo(Source.class) from untrusted sources.

Detection Strategies

  • Inspect route definitions for xslt, xslt-saxon, tika, or xmlsecurity components combined with any upstream convertBodyTo(Source.class) or Source-producing component.
  • Enable XML payload logging at ingress and alert on DOCTYPE and ENTITY tokens entering XSLT processing routes.
  • Audit application code for direct use of TransformerFactory.newInstance() where the Xalan extension is on the classpath.

Monitoring Recommendations

  • Monitor egress firewall logs for anomalous JVM-originated connections to RFC1918 ranges and cloud metadata services.
  • Capture and retain XML request bodies to XSLT endpoints for retrospective hunting after patch deployment.
  • Track dependency versions of camel-quarkus-support-xalan across build pipelines using Software Composition Analysis.

How to Mitigate CVE-2026-88789

Immediate Actions Required

  • Upgrade Apache Camel Quarkus to version 3.33.3 (3.2.x line) or 3.40.0 (3.34.x line) immediately.
  • Audit all routes using camel-quarkus-xslt, camel-quarkus-xslt-saxon, camel-quarkus-tika, or camel-quarkus-xmlsecurity.
  • Treat all XML inputs to XSLT transformations as untrusted until the patched version is deployed.

Patch Information

The fix is delivered in Apache Camel Quarkus 3.33.3 and 3.40.0. The patched extension installs an XMLReader that does not resolve external entities or load external DTDs, and denies document() function fetches unless a javax.xml.transform.URIResolver resolves them. See the Apache Camel CVE-2026-88789 Advisory and the fix commits 9a570b64 and 9dd11779.

Workarounds

  • Avoid converting untrusted bodies to javax.xml.transform.Source before XSLT processing; let Camel's hardened SAX conversion apply.
  • Place a validating gateway or WAF rule in front of XSLT endpoints to strip DOCTYPE and ENTITY declarations from inbound XML.
  • Where feasible, remove the camel-quarkus-support-xalan dependency if XSLT is not required by the application.
bash
# Pin patched versions in pom.xml
<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-xslt</artifactId>
    <version>3.40.0</version>
</dependency>

# Or for the 3.2.x maintenance line
<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-xslt</artifactId>
    <version>3.33.3</version>
</dependency>

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.