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-91858 Overview
CVE-2026-91858 is an XML External Entity (XXE) vulnerability [CWE-611] in the Apache Camel camel-fop component. The FopProducer transforms incoming XSL-FO message bodies using TransformerFactory.newInstance() with only FEATURE_SECURE_PROCESSING enabled. When a third-party JAXP TransformerFactory such as Saxon-HE is present on the classpath, that feature alone does not restrict external resource access. An attacker who can submit XSL-FO content to a fop producer can declare an external DTD or general entity, causing the Camel process to read local files or issue outbound requests to attacker-named hosts.
Critical Impact
Remote attackers can exfiltrate files readable by the Camel process and trigger server-side requests when an alternative JAXP TransformerFactory such as Saxon is on the classpath.
Affected Products
- Apache Camel camel-fop component on supported release lines where another JAXP TransformerFactory (for example Saxon-HE via camel-xslt-saxon or camel-saxon) is present on the classpath
- Apache Camel 4.14.x and earlier release lines, which reached end of life before the fix and will not receive a patch
- Default camel-fop deployments using the JDK built-in transformer are not affected
Discovery Timeline
- 2026-10-19 - CVE-2026-91858 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-91858
Vulnerability Analysis
The FopProducer in camel-fop performs an identity XSLT transform over incoming XSL-FO message bodies. It obtains a transformer via TransformerFactory.newInstance() and sets only FEATURE_SECURE_PROCESSING before executing the transform. On the JDK's built-in transformer, enabling this feature also empties the accessExternalDTD and accessExternalStylesheet properties, blocking external resource resolution.
That mitigation does not generalize. When a non-JDK JAXP TransformerFactory such as Saxon-HE is on the classpath, TransformerFactory.newInstance() resolves to the alternative implementation. On those implementations, FEATURE_SECURE_PROCESSING alone does not restrict external DTD or entity resolution. The transformer then processes DOCTYPE declarations and external general entities present in the attacker-controlled XSL-FO document.
Root Cause
The root cause is incomplete XML parser hardening [CWE-611]. The producer relies on a single feature flag whose semantics are implementation-specific. The camel-fop module itself excludes Xalan and does not ship an alternative factory, but any co-deployed component that pulls in Saxon or similar changes the effective JAXP implementation and silently removes the external-resource protections.
Attack Vector
An external sender whose XSL-FO reaches a fop producer supplies a document with a DOCTYPE referencing an external subset or declaring an external general entity. During the identity transform, the alternative TransformerFactory resolves the external reference. This allows the Camel process to read local files accessible to its user context and to issue outbound HTTP, FTP, or other protocol requests to hosts specified in the document, enabling data exfiltration and server-side request forgery.
See the Apache Camel CVE-2026-91858 Advisory for implementation-level details.
Detection Methods for CVE-2026-91858
Indicators of Compromise
- Inbound XSL-FO payloads routed to fop: producer endpoints containing <!DOCTYPE ...> declarations, SYSTEM identifiers, or ENTITY definitions referencing external URIs
- Unexpected outbound network connections from Camel JVM processes to attacker-controlled hosts shortly after a fop route executes
- File read activity by the Camel process targeting sensitive paths such as /etc/passwd, application configuration files, or credential stores not referenced by normal routes
Detection Strategies
- Inspect Camel route definitions for fop: producer usage combined with dependencies on camel-xslt-saxon, camel-saxon, or standalone Saxon-HE on the classpath
- Enable XML parser logging or wrap the TransformerFactory to log any resolve() calls on EntityResolver or URIResolver during XSL-FO processing
- Correlate inbound message content containing DOCTYPE markers with subsequent process-level file reads and outbound socket activity
Monitoring Recommendations
- Alert on new outbound DNS or HTTP destinations originating from JVM processes hosting Camel routes that include fop producers
- Monitor Camel application logs for XSLT or FOP processing errors referencing external URIs, SYSTEM identifiers, or entity resolution failures
- Track dependency changes that introduce or upgrade Saxon or other JAXP implementations in applications using camel-fop
How to Mitigate CVE-2026-91858
Immediate Actions Required
- Upgrade Apache Camel to a fixed release on a currently supported line; releases on 4.14.x and earlier are end of life and will not receive this fix
- Audit the application classpath for alternative JAXP TransformerFactory implementations such as Saxon-HE pulled in through camel-xslt-saxon, camel-saxon, or transitive dependencies
- Restrict which senders can deliver XSL-FO content to any route terminating in a fop: producer
Patch Information
The fix is tracked in Apache JIRA Issue CAMEL-24605 and delivered through GitHub Apache Camel Pull Request #26108, GitHub Apache Camel Pull Request #26168, and GitHub Apache Camel Pull Request #26169. The patches explicitly disable external DTD and stylesheet access on the TransformerFactory used by FopProducer, independent of the underlying JAXP implementation.
Workarounds
- Remove Saxon-HE and other third-party JAXP TransformerFactory providers from the classpath where camel-fop is deployed, forcing use of the JDK transformer
- If an alternative factory must remain, wrap or subclass FopProducer to explicitly set XMLConstants.ACCESS_EXTERNAL_DTD and XMLConstants.ACCESS_EXTERNAL_STYLESHEET to an empty string on the TransformerFactory
- Validate or sanitize inbound XSL-FO to reject any payload containing <!DOCTYPE or external entity declarations before it reaches the fop producer
# Configuration example: explicitly restrict external resources on TransformerFactory
# (apply in a custom producer or route processor wrapping camel-fop)
TransformerFactory factory = TransformerFactory.newInstance();
factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "");
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

