Skip to main content

Eu.copernik:copernik xml factory: Copernik XML Factory (stock JDK provider) has Improper restriction of XInclude resource resolution (CVE-2026-61586)

0
High
Published: 10/02/2026 (10/02/2026, 18:27:17 UTC)
Source: GCVE Database
Product: eu.copernik:copernik-xml-factory

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Mavenghsa
eu.copernik:copernik-xml-factory
Affected versions
<0.1.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/02/2026, 20:02:12 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses