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

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-02)
- Published: 2026-10-02T18:27:17.000Z
- Modified: 2026-11-05T03:17:28.920Z
- Also known as: GHSA-xm28-xvqc-gxxg
- Weaknesses: CWE-611
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- copernik-eu copernik-xml-factory: < 0.1.2
- eu.copernik:copernik-xml-factory (Maven): before 0.1.2

## Every score

- GitHub_M: CVSS:4.0 8.2 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/copernik-eu/copernik-xml-factory/security/advisories/GHSA-xm28-xvqc-gxxg> (web)
- <https://github.com/copernik-eu/copernik-xml-factory/commit/2fa042c44931b0a4ddd585d62b97a8a987efd6c6> (web)
- <https://github.com/copernik-eu/copernik-xml-factory/commit/e5febc6039ed4b0088245acb80ed7d6d6a7f5537> (web)
- <https://github.com/copernik-eu/copernik-xml-factory/releases/tag/v0.1.2> (web)
- <https://github.com/copernik-eu/copernik-xml-factory> (package)

## Sources

- CVE List: [CVE-2026-61586](https://www.cve.org/CVERecord?id=CVE-2026-61586), CVE Terms of Use, modified 2026-11-05
- GitHub Advisory Database: [GHSA-xm28-xvqc-gxxg](https://github.com/advisories/GHSA-xm28-xvqc-gxxg), CC-BY-4.0, modified 2026-10-02
- NVD: [CVE-2026-61586](https://nvd.nist.gov/vuln/detail/CVE-2026-61586), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-61586 · Whole record: https://cve.day/CVE-2026-61586.json · Rebuilt by cve.day 2026-11-25T22:59:47.999Z
