Eu.copernik:copernik xml factory: Copernik XML Factory (stock JDK provider) has Improper restriction of XInclude resource resolution (CVE-2026-61586)
Copernik XML Factory versions before 0.1.2, when using the stock JDK XML provider, improperly allow XInclude resource resolution after enabling XInclude. This breaks the library's guarantee that XInclude resolution remains disabled, potentially allowing attackers to read local files or perform SSRF via HTTP references when parsing untrusted XML. The issue does not affect the Xerces or Android providers. Upgrading to version 0.1.2 or adding Apache Xerces to the classpath mitigates the vulnerability.
AI Analysis
Technical Summary
Copernik XML Factory through version 0.1.1, when running on its default JDK XML provider (not Apache Xerces), fails to block XInclude resource resolution after an application enables XInclude on factories returned by XmlFactories.newDocumentBuilderFactory() or XmlFactories.newSAXParserFactory(), or on an XMLReader hardened by XmlFactories.harden(). This allows an attacker to exploit XInclude references in untrusted XML to read local files or reach internal network endpoints via HTTP, causing information disclosure and SSRF. The vulnerability requires that the application enables XInclude and parses untrusted XML using the stock JDK provider. The Xerces and Android providers are not affected. The issue is fixed in version 0.1.2, and as a workaround, adding Apache Xerces to the classpath forces selection of the unaffected Xerces provider.
Potential Impact
An attacker can exploit this vulnerability by supplying crafted XML containing XInclude references to cause the application to resolve external resources. This can lead to local file disclosure or server-side request forgery (SSRF) to internal network endpoints. The impact is limited to applications that enable XInclude and parse untrusted XML using the stock JDK provider. The vulnerability does not allow remote code execution or privilege escalation but can expose sensitive information and internal services.
Mitigation Recommendations
A fix is available in Copernik XML Factory version 0.1.2. Applications should upgrade to this version to remediate the vulnerability. As a temporary workaround, adding Apache Xerces (xercesImpl) to the classpath will cause the library to select the unaffected Xerces provider, mitigating the issue. No other actions are required if these steps are taken.
Eu.copernik:copernik xml factory: Copernik XML Factory (stock JDK provider) has Improper restriction of XInclude resource resolution (CVE-2026-61586)
Description
Copernik XML Factory versions before 0.1.2, when using the stock JDK XML provider, improperly allow XInclude resource resolution after enabling XInclude. This breaks the library's guarantee that XInclude resolution remains disabled, potentially allowing attackers to read local files or perform SSRF via HTTP references when parsing untrusted XML. The issue does not affect the Xerces or Android providers. Upgrading to version 0.1.2 or adding Apache Xerces to the classpath mitigates the vulnerability.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Copernik XML Factory through version 0.1.1, when running on its default JDK XML provider (not Apache Xerces), fails to block XInclude resource resolution after an application enables XInclude on factories returned by XmlFactories.newDocumentBuilderFactory() or XmlFactories.newSAXParserFactory(), or on an XMLReader hardened by XmlFactories.harden(). This allows an attacker to exploit XInclude references in untrusted XML to read local files or reach internal network endpoints via HTTP, causing information disclosure and SSRF. The vulnerability requires that the application enables XInclude and parses untrusted XML using the stock JDK provider. The Xerces and Android providers are not affected. The issue is fixed in version 0.1.2, and as a workaround, adding Apache Xerces to the classpath forces selection of the unaffected Xerces provider.
Potential Impact
An attacker can exploit this vulnerability by supplying crafted XML containing XInclude references to cause the application to resolve external resources. This can lead to local file disclosure or server-side request forgery (SSRF) to internal network endpoints. The impact is limited to applications that enable XInclude and parse untrusted XML using the stock JDK provider. The vulnerability does not allow remote code execution or privilege escalation but can expose sensitive information and internal services.
Mitigation Recommendations
A fix is available in Copernik XML Factory version 0.1.2. Applications should upgrade to this version to remediate the vulnerability. As a temporary workaround, adding Apache Xerces (xercesImpl) to the classpath will cause the library to select the unaffected Xerces provider, mitigating the issue. No other actions are required if these steps are taken.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-xm28-xvqc-gxxg
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-61586"]
- Ecosystems
- ["Maven"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6ac00d27a43b0b3b89fb149c
Added to database: 10/02/2026, 19:59:35 UTC
Last enriched: 10/02/2026, 20:02:12 UTC
Last updated: 10/03/2026, 03:10:34 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.