{"id":"CVE-2026-91858","kind":"vulnerability","aliases":["CVE-2026-91858"],"related":[],"title":"Apache Camel FOP: XSL-FO body can read local files via XXE","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.","summary":"camel-fop transforms incoming XSL-FO bodies with a JAXP TransformerFactory that only sets FEATURE_SECURE_PROCESSING, which does not block external DTDs or entities on third-party factories such as Saxon-HE. An external sender can make the Camel process read files it can access and issue requests to hosts named in the document.","severity":"medium","cvss":6.5,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["camel","fop","java","package","saxon","self-hosted"],"not_affected_if":["default-config","no-saxon-on-classpath","no-untrusted-xsl-fo-input"],"how_to_check":"- Check whether the application's classpath contains Saxon-HE or another alternative JAXP TransformerFactory, for example by running `mvn dependency:tree` and looking for `camel-saxon`, `camel-xslt-saxon` or `Saxon-HE`.\n- Check whether any route feeds untrusted input into a `fop` producer endpoint.\n- Check the camel version in use; releases on the 4.14.x line and earlier are end of life and receive no fix.","fix":"- Upgrade camel-fop to a patched release on a supported line; releases on the 4.14.x line and earlier receive no fix, so move off that line.\n- Remove Saxon-HE or other alternative JAXP TransformerFactory implementations from the classpath if FOP is not expected to use them.\n- Unknown fixed version number: the sources do not say which release contains the fix.","status":"open","published_at":"2026-10-19T11:17:25+00:00","first_seen_at":"2026-10-23T21:57:18+00:00","triaged_at":"2026-10-25T03:57:09+00:00","updated_at":"2026-10-25T03:57:09+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-25T03:57:09Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade camel-fop to a patched release on a supported line; releases on the 4.14.x line and earlier receive no fix, so move off that line.\n- Remove Saxon-HE or other alternative JAXP TransformerFactory implementations from the classpath if FOP is not expected to use them.\n- Unknown fixed version number: the sources do not say which release contains the fix.","reach":"network","title":"Apache Camel FOP: XSL-FO body can read local files via XXE","impact":"medium","summary":"camel-fop transforms incoming XSL-FO bodies with a JAXP TransformerFactory that only sets FEATURE_SECURE_PROCESSING, which does not block external DTDs or entities on third-party factories such as Saxon-HE. An external sender can make the Camel process read files it can access and issue requests to hosts named in the document.","category":"package","nicknames":[],"who_cares":["camel","java","fop","saxon","self-hosted"],"confidence":0.7,"needs_auth":"unknown","worst_case":"Attacker reads local files and triggers server-side requests via XXE","analyst_note":"Find the fixed camel-fop version and the exact affected range from the NVD entry or the Apache Camel security advisory; the sources give only the 4.14.x end-of-life note.","how_to_check":"- Check whether the application's classpath contains Saxon-HE or another alternative JAXP TransformerFactory, for example by running `mvn dependency:tree` and looking for `camel-saxon`, `camel-xslt-saxon` or `Saxon-HE`.\n- Check whether any route feeds untrusted input into a `fop` producer endpoint.\n- Check the camel version in use; releases on the 4.14.x line and earlier are end of life and receive no fix.","needs_analyst":true,"not_affected_if":["default-config","no-saxon-on-classpath","no-untrusted-xsl-fo-input"],"who_is_affected":"Only applications where a non-JDK JAXP TransformerFactory, such as Saxon-HE brought in by camel-saxon or camel-xslt-saxon, is on the classpath and where untrusted XSL-FO reaches a fop producer. camel-fop excludes Xalan and uses the JDK transformer by default, so a default deployment is not affected. Teams on the 4.14.x line or earlier have no fix and must upgrade.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000795,"input_tokens":3697,"output_tokens":850,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2026':15A,18A '-91858':16A,19A '4.14':297C 'access':77B,190C 'accessexternaldtd':130C 'accessexternalstylesheet':132C 'affect':276C 'alon':126C 'alreadi':127C 'also':163C 'altern':288C 'anoth':283C 'apach':1A 'applic':162C 'block':50B 'bodi':7A,36B,95C,115C,218C 'bring':258C 'built':121C 'built-in':120C 'camel':2A,20B,29B,71B,166C,171C,239C,254C 'camel-fop':28B,253C 'camel-saxon':170C 'camel-xslt-saxon':165C 'caus':242C 'classpath':157C,293C 'compon':284C 'could':232C 'creat':97C 'cve':14A,17A 'declar':204C 'default':268C 'deploy':269C 'doctyp':194C 'document':86B,210C,251C 'dtd':137C 'dtds':52B 'earlier':301C 'empti':128C 'enabl':103C 'end':303C 'entiti':54B,139C,203C 'exampl':159C 'exclud':264C 'expand':215C 'extern':51B,66B,136C,188C,197C,201C,222C 'factori':59B,261C 'featur':44B,105C,125C,179C 'file':11A,74B,235C 'fix':316C 'fo':6A,35B,93C,209C,227C 'fop':3A,21B,30B,230C,255C 'fopproduc':87C 'general':202C 'host':27B,82B,249C 'ident':111C 'implement':176C 'incom':32B,90C 'instead':177C 'issu':79B,246C,278C,308C 'java':22B 'javax.xml.transform.transformerfactory':99C 'jaxp':39B,147C,289C 'jdk':118C,272C 'life':305C 'limit':133C 'line':299C 'local':10A 'make':69B 'messag':94C 'name':83B,252C 'packag':23B 'parti':58B,146C 'place':286C 'process':46B,72B,107C,181C,240C,244C 'produc':231C 'reach':228C,302C 'reachabl':280C 'read':9A,73B,234C 'readabl':236C 'receiv':314C 'refus':141C 'releas':294C 'request':80B,247C 'resolv':213C,310C 'resourc':189C 'restrict':187C 'return':174C 'run':109C 'saxon':24B,63B,152C,168C,172C 'saxon-h':62B,151C 'secur':45B,106C,180C 'self':26B 'self-host':25B 'sender':67B,223C 'set':43B 'subset':198C 'therefor':233C 'third':57B,145C 'third-parti':56B,144C 'transform':31B,88C,112C,123C,220C,273C 'transformerfactori':40B,148C,290C 'transformerfactory.newinstance':101C,173C 'use':164C,270C 'via':12A 'whose':224C 'x':298C 'xalan':265C 'xsl':5A,34B,92C,208C,226C 'xsl-fo':4A,33B,91C,207C,225C 'xslt':167C 'xxe':13A","nicknames":[],"mitigations":[],"who_affected":"Only applications where a non-JDK JAXP TransformerFactory, such as Saxon-HE brought in by camel-saxon or camel-xslt-saxon, is on the classpath and where untrusted XSL-FO reaches a fop producer. camel-fop excludes Xalan and uses the JDK transformer by default, so a default deployment is not affected. Teams on the 4.14.x line or earlier have no fix and must upgrade.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-19T11:17:25+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","cvss_by":"security@apache.org","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-91858","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-91858","severity":null,"published_at":"2026-10-19T11:17:25+00:00","modified_at":"2026-10-19T20:45:51+00:00","first_seen_at":"2026-10-23T21:57:18+00:00","fetched_at":"2026-10-23T22:28:57+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}