Description
FopProducer transforms the incoming XSL-FO message body by creating a javax.xml.transform.TransformerFactory through TransformerFactory.newInstance() and enabling only FEATURE_SECURE_PROCESSING before running an identity transform over the body. On the JDK's built-in transformer, that feature alone already empties the accessExternalDTD and accessExternalStylesheet limits, so an external DTD or entity is refused. When a third-party JAXP TransformerFactory such as Saxon-HE is on the classpath, for example because the application also uses camel-xslt-saxon or camel-saxon, TransformerFactory.newInstance() returns that implementation instead, and FEATURE_SECURE_PROCESSING on its own does not restrict external resource access on it. A DOCTYPE with an external subset, or an external general entity, declared in the XSL-FO document is then resolved and expanded while the body is transformed. An external sender whose XSL-FO reaches a fop producer could therefore read files readable by the Camel process and cause the process to issue requests to hosts the document names. camel-fop does not bring such a factory itself, and excludes Xalan, so a default deployment using the JDK transformer is not affected; the issue is reachable only where another component has placed an alternative JAXP TransformerFactory on the classpath. Releases on the 4.14.x line and earlier reached end of life before this issue was resolved and do not receive a fix.
Published: 2026-10-19
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: Information disclosure through XXE in XSL-FO processing
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is caused by Camel’s FopProducer creating a javax.xml.transform.TransformerFactory via TransformerFactory.newInstance() and enabling only FEATURE_SECURE_PROCESSING. On the JDK’s built‑in transformer this setting blocks external DTDs and entities, but when a third‑party JAXP implementation such as Saxon‑HE is present on the classpath, FEATURE_SECURE_PROCESSING alone does not preclude external resource resolution. An attacker can therefore supply an XSL-FO document that contains an external DOCTYPE or entity; the transformer will resolve and expand that reference during the identity transform, allowing the attacker to read files readable by the Camel process and cause outbound requests to arbitrary hosts, leading to information disclosure and possible network reconnaissance.

Affected Systems

Apache Camel, available in all releases from 4.14.x through 4.22.x and 4.18.x streams, is affected when a third‑party JAXP TransformerFactory such as Saxon‑HE is present. The 4.23.0 release and the specific patch releases 4.22.1 and 4.18.5 contain a fix. Earlier 4.14.x lines and earlier are end‑of‑life and do not receive a fix. The default JDK transformer is not affected unless overridden by a third‑party factory.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate severity. EPSS data is unavailable and the vulnerability is not listed in CISA’s KEV catalog, suggesting no confirmed exploitation currently. The likely attack vector requires an attacker to send untrusted XSL-FO to a Camel fop producer while a susceptible JAXP transformer is on the classpath. Successful exploitation results in local file disclosure and the ability to initiate outbound connections. Because the issue is resolved in the 4.23.0 release and later patch releases, the risk can be mitigated by upgrading or applying the specified workarounds.

Generated by OpenCVE AI on October 19, 2026 at 12:35 UTC.

Remediation

Vendor Solution

Users are recommended to upgrade to version 4.23.0, which fixes the issue. If users are on the 4.22.x releases stream, then they are suggested to upgrade to 4.22.1. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.5. FopProducer now also sets ACCESS_EXTERNAL_DTD and ACCESS_EXTERNAL_STYLESHEET to the empty string on the TransformerFactory it creates, in addition to FEATURE_SECURE_PROCESSING, matching the secure XML processing configuration used by org.apache.camel.converter.jaxp.XmlConverter, so external DTD and stylesheet access is refused on any JAXP implementation that honours those attributes. The 4.14.x releases stream and earlier reached end of life before this issue was resolved and will not receive a fix, so deployments on those lines must move to a supported release.


Vendor Workaround

For deployments that cannot upgrade immediately, do not send untrusted XSL-FO to a fop producer. Alternatively, remove the third-party JAXP TransformerFactory such as Saxon-HE from the classpath, so that the JDK's built-in transformer is used, which already refuses external DTDs and external entities when secure processing is enabled.


OpenCVE Recommended Actions

  • Upgrade to Apache Camel 4.23.0 (or 4.22.1 if on the 4.22.x stream, or 4.18.5 if on the 4.18.x stream) to receive the FopProducer fix.
  • Remove any third‑party JAXP TransformerFactory (for example Saxon‑HE) from the classpath so that the JDK’s built‑in transformer is used; this transformer denies external DTDs when secure processing is enabled.
  • If immediate upgrade or classpath changes are not possible, avoid sending untrusted XSL-FO documents to a fop producer until a fix is applied.

Generated by OpenCVE AI on October 19, 2026 at 12:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 19 Oct 2026 11:00:00 +0000

Type Values Removed Values Added
Description FopProducer transforms the incoming XSL-FO message body by creating a javax.xml.transform.TransformerFactory through TransformerFactory.newInstance() and enabling only FEATURE_SECURE_PROCESSING before running an identity transform over the body. On the JDK's built-in transformer, that feature alone already empties the accessExternalDTD and accessExternalStylesheet limits, so an external DTD or entity is refused. When a third-party JAXP TransformerFactory such as Saxon-HE is on the classpath, for example because the application also uses camel-xslt-saxon or camel-saxon, TransformerFactory.newInstance() returns that implementation instead, and FEATURE_SECURE_PROCESSING on its own does not restrict external resource access on it. A DOCTYPE with an external subset, or an external general entity, declared in the XSL-FO document is then resolved and expanded while the body is transformed. An external sender whose XSL-FO reaches a fop producer could therefore read files readable by the Camel process and cause the process to issue requests to hosts the document names. camel-fop does not bring such a factory itself, and excludes Xalan, so a default deployment using the JDK transformer is not affected; the issue is reachable only where another component has placed an alternative JAXP TransformerFactory on the classpath. Releases on the 4.14.x line and earlier reached end of life before this issue was resolved and do not receive a fix.
Title Apache Camel: Camel-FOP Resolves External DTDs and Entities From Untrusted XSL-FO Input When a Third-Party JAXP TransformerFactory Is Present
Weaknesses CWE-611
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-19T14:30:10.376Z

Reserved: 2026-09-15T09:22:12.094Z

Link: CVE-2026-91858

cve-icon Vulnrichment

Updated: 2026-10-19T14:29:58.850Z

cve-icon NVD

Status : Received

Published: 2026-10-19T11:17:25.683

Modified: 2026-10-19T15:17:09.623

Link: CVE-2026-91858

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T12:45:14Z

Weaknesses
  • CWE-611

    Improper Restriction of XML External Entity Reference