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

Status: published. Published: 2026-10-30. Updated: 2026-11-05.

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.

## Remediation

- fix: eu.copernik:copernik-xml-factory (Maven): OSV reports a fixed version 0.1.2. Check the advisory for supported release branches. (source: OSV GHSA-xm28-xvqc-gxxg) — https://github.com/advisories/GHSA-xm28-xvqc-gxxg

## Affected products and versions

- copernik-eu / copernik-xml-factory: < 0.1.2 (affected). Source: CNA: GitHub_M
-  / eu.copernik:copernik-xml-factory (eu.copernik:copernik-xml-factory): 0.1.0 (affected, Maven); 0.1.1 (affected, Maven); Ecosystem version events: introduced 0; fixed 0.1.2. Source: OSV GHSA-xm28-xvqc-gxxg

## Severity and prioritization

- 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; source: CNA: GitHub_M

- CISA KEV: No listing in collected sources

- EPSS: 0.36% as of 2026-11-04; percentile 29.66%

- SSVC: exploitation none; automatable yes; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-611

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/copernik-eu/copernik-xml-factory/security/advisories/GHSA-xm28-xvqc-gxxg (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/copernik-eu/copernik-xml-factory/commit/2fa042c44931b0a4ddd585d62b97a8a987efd6c6 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/copernik-eu/copernik-xml-factory/commit/e5febc6039ed4b0088245acb80ed7d6d6a7f5537 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/copernik-eu/copernik-xml-factory/releases/tag/v0.1.2 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/advisories/GHSA-xm28-xvqc-gxxg (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-xm28-xvqc-gxxg (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-61586; retrieved 2026-11-05; source updated 2026-11-05

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-xm28-xvqc-gxxg; retrieved 2026-11-05; source updated 2026-10-02

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-61586; retrieved 2026-11-05; source updated Not reported

Revision: 1acd32b6e399f3ed2b8ece0122f0c4877d7d90b6a17e5f0a3e5c175e3bebcf8b

Canonical: https://y2.dev/cve/CVE-2026-61586

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.