Skip to content

CVE-2026-61586 Copernik XML Factory: Improper restriction of XInclude resource resolution in Copernik XML Factory (stock JDK provider)

HighCVSS 8.2 EPSS 0.36%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
eu.copernik/copernik-xml-factory(Maven) < 0.1.2 0.1.2
eu.copernik/copernik-xml-factory(Maven) = 0.1.0 No fix listed
eu.copernik/copernik-xml-factory(Maven) = 0.1.1 No fix listed
copernik-eu copernik-xml-factory = < 0.1.2 No fix listed

References