{"id":"CVE-2026-61586","kind":"vulnerability","aliases":["CVE-2026-61586"],"related":[],"title":"Copernik XML Factory: XInclude lets untrusted XML read local files","description":"Copernik XML Factory provides secure-by-default JAXP factory creation for Java. Prior to 0.1.2, Copernik XML Factory does not block XInclude resource resolution on the stock JDK provider after an application enables XInclude on a factory returned by `XmlFactories.newDocumentBuilderFactory()` or `XmlFactories.newSAXParserFactory()`, or on an `XMLReader` passed through `XmlFactories.harden()`. An application parsing untrusted XML can resolve attacker-controlled `xi:include` references to disclose local files or, through `http` references, reach internal network endpoints by server-side request forgery. Exploitation requires use of one of those factory/hardening APIs, the stock JDK provider with Apache Xerces absent from the classpath, explicit `setXIncludeAware(true)` or the equivalent reader feature, and XML from an untrusted source. The Xerces provider selected when Xerces is present and the Android provider are unaffected. This issue is fixed in version 0.1.2.","summary":"Copernik XML Factory, a Java library for building secure XML parsers, fails to block XInclude resolution on the stock JDK parser after an application enables XInclude. An attacker who supplies XML can read local files or reach internal HTTP endpoints through server-side request forgery.","severity":"high","cvss":8.2,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["copernik-xml-factory","java","package","server-side","xml"],"not_affected_if":["android","trusted-xml-only","xerces-on-classpath","xinclude-disabled"],"how_to_check":"- Look for `XmlFactories.newDocumentBuilderFactory()`, `XmlFactories.newSAXParserFactory()` or `XmlFactories.harden()` in the Java code\n- Check whether `setXIncludeAware(true)` or an equivalent XInclude feature is enabled on those factories\n- Check the dependency tree for the Copernik XML Factory version and confirm Apache Xerces is absent from the classpath","fix":"- Copernik XML Factory: move to `0.1.2` or later","status":"open","published_at":"2026-10-30T19:18:27+00:00","first_seen_at":"2026-10-30T19:25:29+00:00","triaged_at":"2026-10-30T19:25:54+00:00","updated_at":"2026-10-30T19:25:54+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-30T19:25:54Z","model":"claude-haiku-5-5","output":{"fix":"- Copernik XML Factory: move to `0.1.2` or later","reach":"internet","title":"Copernik XML Factory: XInclude lets untrusted XML read local files","impact":"medium","summary":"Copernik XML Factory, a Java library for building secure XML parsers, fails to block XInclude resolution on the stock JDK parser after an application enables XInclude. An attacker who supplies XML can read local files or reach internal HTTP endpoints through server-side request forgery.","audience":"developers","category":"package","nicknames":[],"who_cares":["java","xml","copernik-xml-factory","server-side"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"local files readable and internal network endpoints reachable via SSRF","analyst_note":"","how_to_check":"- Look for `XmlFactories.newDocumentBuilderFactory()`, `XmlFactories.newSAXParserFactory()` or `XmlFactories.harden()` in the Java code\n- Check whether `setXIncludeAware(true)` or an equivalent XInclude feature is enabled on those factories\n- Check the dependency tree for the Copernik XML Factory version and confirm Apache Xerces is absent from the classpath","plain_action":"","needs_analyst":false,"not_affected_if":["xerces-on-classpath","android","xinclude-disabled","trusted-xml-only"],"who_is_affected":"Applications that parse untrusted XML with Copernik XML Factory, enable XInclude on the factories it returns, and run on the stock JDK XML provider without Apache Xerces on the classpath. Applications where Xerces is present or that run on Android are not affected, and applications that never enable XInclude or never parse untrusted XML are unlikely to be exposed.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000759,"input_tokens":4359,"output_tokens":647,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-2026':12A,15A '-61586':13A,16A '0.1.2':88C,208C 'absent':170C 'android':198C 'apach':168C 'api':162C 'applic':50B,105C,124C 'attack':54B,131C 'attacker-control':130C 'block':40B,94C 'build':34B 'classpath':173C 'control':132C 'copernik':1A,18B,27B,73C,89C 'copernik-xml-factori':17B 'creation':83C 'cve':11A,14A 'default':80C 'disclos':137C 'enabl':51B,106C 'endpoint':66B,147C 'equival':179C 'explicit':174C 'exploit':154C 'factori':3A,20B,29B,75C,82C,91C,110C 'factory/hardening':161C 'fail':38B 'featur':181C 'file':10A,61B,139C 'fix':205C 'forgeri':72B,153C 'http':65B,142C 'includ':134C 'intern':64B,145C 'issu':203C 'java':21B,31B,85C 'jaxp':81C 'jdk':46B,101C,165C 'let':5A 'librari':32B 'local':9A,60B,138C 'network':146C 'one':158C 'packag':22B 'pars':125C 'parser':37B,47B 'pass':120C 'present':195C 'prior':86C 'provid':76C,102C,166C,190C,199C 'reach':63B,144C 'read':8A,59B 'reader':180C 'refer':135C,143C 'request':71B,152C 'requir':155C 'resolut':42B,97C 'resolv':129C 'resourc':96C 'return':111C 'secur':35B,78C 'secure-by-default':77C 'select':191C 'server':24B,69B,150C 'server-sid':23B,68B,149C 'setxincludeawar':175C 'side':25B,70B,151C 'sourc':187C 'stock':45B,100C,164C 'suppli':56B 'true':176C 'unaffect':201C 'untrust':6A,126C,186C 'use':156C 'version':207C 'xerc':169C,189C,193C 'xi':133C 'xinclud':4A,41B,52B,95C,107C 'xml':2A,7A,19B,26B,28B,36B,57B,74C,90C,127C,183C 'xmlfactories.harden':122C 'xmlfactories.newdocumentbuilderfactory':113C 'xmlfactories.newsaxparserfactory':115C 'xmlreader':119C","nicknames":[],"mitigations":[],"who_affected":"Applications that parse untrusted XML with Copernik XML Factory, enable XInclude on the factories it returns, and run on the stock JDK XML provider without Apache Xerces on the classpath. Applications where Xerces is present or that run on Android are not affected, and applications that never enable XInclude or never parse untrusted XML are unlikely to be exposed.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"first_public_at":"2026-10-30T19:18:27+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-61586","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61586","severity":null,"published_at":"2026-10-30T19:18:27+00:00","modified_at":"2026-10-30T19:18:27+00:00","first_seen_at":"2026-10-30T19:25:29+00:00","fetched_at":"2026-10-30T19:25:29+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"}