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-88901 Overview
CVE-2026-88901 is an XML External Entity (XXE) vulnerability in the Apache Camel camel-smooks component. The flaw lets an attacker who controls an inbound XML message body read local files or trigger requests to internal network hosts. The Smooks data format (.unmarshal().smooks(...)) and the smooks: endpoint parse XML with the Woodstox SAX parser, which resolves external general and parameter entities and loads external DTDs by default. Unlike other Camel XML components, camel-smooks applied none of the standard parser hardening, so a DOCTYPE with an external subset or an external general entity is resolved and bound into the unmarshalled result. The issue is classified under [CWE-611].
Critical Impact
An unauthenticated remote attacker can exfiltrate files readable by the Camel process and reach internal network services through server-side request forgery via crafted XML bodies.
Affected Products
- Apache Camel 4.7.0 through versions before 4.18.5
- Apache Camel 4.19.0 through versions before 4.22.1
- camel-smooks component and Smooks data format using the default XML reader
Discovery Timeline
- 2026-10-19 - CVE-2026-88901 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-88901
Vulnerability Analysis
The vulnerability resides in how camel-smooks initializes its XML reader. When the Smooks data format or endpoint receives an XML body, it delegates parsing to the Woodstox SAX parser that Smooks resolves by default. The parser performs external entity resolution and loads external DTDs as its stock behavior, and camel-smooks did not override these defaults. An attacker can submit XML containing a DOCTYPE declaration with an external subset or an external general entity. The parser then dereferences the entity during unmarshalling, pulling file contents or remote resources into the parsed document. On InOut routes, the resolved content is bound into the unmarshalled result and returned to the caller, enabling direct data exfiltration.
Root Cause
The camel-smooks module did not apply the secure XML processing configuration used by org.apache.camel.converter.jaxp.XmlConverter and the other Camel XML components. External entity and external DTD resolution were left enabled by default, violating the [CWE-611] protection pattern. No non-default option was required to trigger the behavior.
Attack Vector
An external sender transmits an XML document to any route whose body passes through the camel-smooks data format or a smooks: endpoint. The document declares an external entity pointing at a local file URI such as file:///etc/passwd or an internal HTTP endpoint. The Woodstox parser resolves the reference during unmarshalling. On InOut exchanges, the resolved content is returned to the sender, giving the attacker a direct exfiltration channel. Configurations that register their own reader for EDI, CSV, JSON, or custom formats bypass the XML reader and are not affected, and the marshalling direction is also unaffected.
Detection Methods for CVE-2026-88901
Indicators of Compromise
- Inbound XML messages containing <!DOCTYPE> declarations with SYSTEM or PUBLIC identifiers referencing file://, http://, or ftp:// URIs
- Camel process making outbound network requests to unexpected internal hosts following receipt of XML payloads
- File read operations by the Camel JVM against sensitive paths such as /etc/passwd, application configuration files, or cloud metadata endpoints
- Log entries from Woodstox or Smooks showing external entity or DTD resolution during unmarshalling
Detection Strategies
- Inspect XML message bodies passing through camel-smooks routes for DOCTYPE, ENTITY, or external subset declarations at an upstream proxy or WAF
- Correlate inbound XML requests with subsequent outbound DNS lookups or TCP connections originating from the Camel process
- Monitor file access telemetry on hosts running Camel for reads initiated by the JVM against paths outside the application working directory
Monitoring Recommendations
- Enable verbose logging on camel-smooks routes during triage to capture the raw XML bodies and resolved entity references
- Alert on JVM process behavior that deviates from the baseline network and filesystem footprint of Camel integration services
- Review Camel route definitions in version control to inventory every use of .smooks() or smooks: endpoints that accept XML from external sources
How to Mitigate CVE-2026-88901
Immediate Actions Required
- Upgrade Apache Camel to 4.23.0, 4.22.1, or 4.18.5 depending on the release stream currently deployed
- For deployments on the end-of-life 4.14.x or earlier streams, migrate to a supported release because no fix will be backported
- If upgrading immediately is not feasible, stop routing XML from untrusted senders through camel-smooks data formats or endpoints
- Audit all Camel routes to confirm which use the Smooks default XML reader versus EDI, CSV, JSON, or custom readers
Patch Information
The fix replaces the default parser in camel-smooks with a javax.xml.parsers.DocumentBuilder that disables external general and parameter entity resolution and does not load external DTDs. The hardened configuration matches org.apache.camel.converter.jaxp.XmlConverter. A new allowExternalEntities option, disabled by default, restores legacy behavior for trusted configurations that depend on entity resolution. Full details are available in the Apache Camel CVE-2026-88901 Advisory, GitHub Pull Request #26270, GitHub Pull Request #26327, GitHub Pull Request #26329, and Apache Camel JIRA Issue CAMEL-24677.
Workarounds
- Place a validating gateway or WAF in front of Camel endpoints that strips or rejects XML containing DOCTYPE declarations
- Restrict network egress from the Camel process so outbound requests to arbitrary external or internal hosts are blocked
- Apply operating system file permissions that limit which files the Camel service account can read
- Switch affected routes to a non-XML reader such as JSON or CSV where the data model allows, since those readers are not affected
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

