Skip to main content

Copernik XML Factory EUVDEUVD-2026-114264

| CVE-2026-61586 HIGH
Improper Restriction of XML External Entity Reference (CWE-611)
2026-10-02 https://github.com/copernik-eu/copernik-xml-factory GHSA-xm28-xvqc-gxxg
8.2
CVSS 4.0 · Vendor: https://github.com/copernik-eu/copernik-xml-factory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit untrusted XML to application
  2. Delivery
    Embed malicious xi:include href
  3. Exploit
    Stock JDK XInclude resolves resource
  4. Execution
    Read local file or reach internal endpoint
  5. Impact
    Disclose file contents or SSRF internal service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration XML external entity prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

All of the following must hold simultaneously, per the advisory: (1) the application obtains its factory from XmlFactories.newDocumentBuilderFactory() or XmlFactories.newSAXParserFactory(), or hardens an externally obtained XMLReader via XmlFactories.harden(); (2) the stock JDK provider is in effect - Apache Xerces is NOT on the classpath (whose XInclude processor ignores ACCESS_EXTERNAL_* attributes); (3) XInclude is explicitly enabled via setXIncludeAware(true) or the equivalent reader feature; and (4) the application parses XML from an untrusted source. Limiting factors that reduce real-world exposure: XInclude is off by default and must be deliberately enabled; deployments with Apache Xerces on the classpath select the unaffected Xerces provider; and the Android provider is not affected. No credentials are required of the attacker (unauthenticated), but the vulnerability is otherwise entirely deployment/configuration-dependent.

Impact

Signals are mixed and point to a genuine but conditional issue rather than a widespread emergency. The vendor CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N) scores 8.2 (High) and reflects an unauthenticated, network-delivered attack (PR:N, UI:N) whose impact is confined to confidentiality (VC:H; VI/VA:N) - consistent with file read and SSRF but no integrity or availability loss. Critically, AT:P (attack requirements present) encodes that exploitation depends on a specific, non-default deployment: the stock JDK provider must be in effect (Apache Xerces absent from the classpath), the application must have enabled XInclude, and it must parse untrusted XML. No EPSS score and no KEV listing were provided, so there is no evidence of active or at-scale exploitation; the vuln.today Decision label is 'this_week', i.e. prompt patching this week rather than act_now/emergency. The patch commits ship attack-demonstrating regression tests (file-read 'LEAKED_MARKER' and SSRF cases), so the trigger mechanism is public, but no standalone weaponized exploit is confirmed. Net: treat as a real, patch-this-week priority for the narrow set of deployments matching all preconditions; for everyone else (Xerces on classpath, Android provider, or XInclude not enabled) real-world risk is low. Missing data to note explicitly: EPSS is absent, so probability-of-exploitation cannot be quantified, and no KEV status is available to confirm or rule out exploitation in the wild.

Exploit ScenarioDerived

An application built on copernik-xml-factory runs on the stock JDK provider (Apache Xerces not on the classpath), calls setXIncludeAware(true) on a factory from XmlFactories.newDocumentBuilderFactory()/newSAXParserFactory() (or hardens an XMLReader), and parses XML from an untrusted source. A remote attacker submits an XML document containing an xi:include with a 'file://' href (e.g. file:///etc/passwd) to read local files, or an 'http' href pointing at an internal endpoint (e.g. a cloud metadata service) to perform SSRF, with the included content surfacing in the parsed result or triggering an outbound request. The fix commit includes attack-demonstrating regression tests, so the trigger is publicly documented, though no packaged standalone exploit is confirmed.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 30, 2026

Copernik XML Factory through 0.1.1 fails to keep XInclude resource resolution blocked when it runs on its stock JDK provider, so a factory handed out by XmlFactories.newDocumentBuilderFactory() or XmlFactories.newSAXParserFactory() - or an XMLReader passed through XmlFactories.harden() - will still fetch xi:include hrefs after the application calls setXIncludeAware(true). Applications that parse untrusted XML in that configuration can be driven to disclose local files or to make HTTP requests to internal endpoints (SSRF); the Xerces and Android providers are not affected, and XInclude must be deliberately enabled for the flaw to matter. The project has released 0.1.2 to correct the defect, which is unauthenticated from the attacker's side (CVSS v4.0 PR:N) but conditional on provider choice and configuration; impact is limited to confidentiality in the assessed vector (C:H/I:N/A:N). No public exploit code and no confirmed active exploitation were identified at time of analysis, and the vendor advisory credits Ta Duc Thien and Duc Anh Nguyen (Danzation) as finders.

Earlier versions of this analysis (1)
v1 Oct 02, 2026 - 18:50

Improper restriction of XInclude resource resolution in Copernik XML Factory through 0.1.1 allows an attacker-controlled XML document to resolve xi:include hrefs when the stock JDK provider is in use, resulting in local file disclosure and server-side request forgery against internal HTTP endpoints. Only applications that obtain a factory from XmlFactories.newDocumentBuilderFactory() or XmlFactories.newSAXParserFactory() (or harden an externally supplied XMLReader via XmlFactories.harden()), run without Apache Xerces (xercesImpl) on the classpath, explicitly enable XInclude with setXIncludeAware(true) or the equivalent reader feature, and parse XML from an untrusted source are affected; the Xerces provider and the Android provider are not affected. No CVSS vector, EPSS score, or CISA KEV entry was provided, so no public exploit or active exploitation was identified at time of analysis, although the defect is confirmed and fixed by upstream commits and the 0.1.2 release.

RemediationAI

Upgrade to Copernik XML Factory 0.1.2, the vendor-released patch version, which installs a deny-all EntityResolver on every DocumentBuilder and on hardened XMLReaders so that xi:include hrefs are rejected by default (release tag: https://github.com/copernik-eu/copernik-xml-factory/releases/tag/v0.1.2; fixes in commits 2fa042c44931b0a4ddd585d62b97a8a987efd6c6 and e5febc6039ed4b0088245acb80ed7d6d6a7f5537). If upgrading is not immediately possible, the vendor-documented workaround is to add Apache Xerces (xercesImpl) to the classpath so the library selects its unaffected Xerces provider - note this changes which parser implementation the application loads and should be validated against existing parsing behaviour. Applications that do enable XInclude on patched versions and need specific trusted inclusions must install their own EntityResolver allow-list on the returned DocumentBuilder or XMLReader; anything the resolver does not explicitly allow stays blocked. Review whether XInclude is actually needed at all, since leaving setXIncludeAware(true) off removes the exposure entirely, and confirm no internal HTTP-egress or file-system reachability is exposed through parsers handling untrusted XML.

Affected VersionsENISA

copernik-xml-factory < 0.1.2

Affected Packages

maven eu.copernik:copernik-xml-factory fix: 0.1.2
euvd copernik_xml_factory fix: 0.1.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The library is a small Java hardening wrapper (Maven coordinates eu.copernik:copernik-xml-factory) around JAXP factory construction, advertising that XInclude resolution stays disabled on the objects it returns. XInclude (XML Inclusions, W3C) lets a document pull in external resources via xi:include href, which the underlying parser resolves through the SAX EntityResolver. On the stock JDK provider, the XInclude processor consults the parser's EntityResolver but does not honour the ACCESS_EXTERNAL_DTD / ACCESS_EXTERNAL_SCHEMA attributes the library relied on, so its documented guarantee silently did not hold; the root cause is CWE-611 (Improper Restriction of XML External Entity Reference), a class that also covers this XInclude-based external resource fetch. The fix commit adds a HardeningDocumentBuilderFactory wrapper that installs a deny-all Resolvers.FallbackDenyResolver on every DocumentBuilder produced, and calls reader.setEntityResolver(...) inside configure(XMLReader), with javadoc changes making clear that XInclude elements are processed but every external lookup is rejected unless a caller installs its own allow-listing EntityResolver. The trigger only manifests when the stock JDK provider is selected (Apache Xerces absent from the classpath), when XInclude is explicitly enabled, and when untrusted XML is parsed; the Xerces provider and the Android provider are documented as unaffected.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/copernik-eu/copernik-xml-factory) PRIMARY 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
vuln.today AI 5.9 MEDIUM

Unauthenticated attacker supplies XML over the network (AV:N, PR:N, UI:N), but exploitation needs non-default config (stock JDK provider plus XInclude enabled), so AC:H; impact is file read/SSRF confidentiality only, so C:H, I:N, A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/copernik-eu/copernik-xml-factory).

CVSS VectorVendor: https://github.com/copernik-eu/copernik-xml-factory

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Oct 30, 2026 - 19:32 vuln.today
v2 - CVSS changed
CVSS changed
Oct 30, 2026 - 19:23 NVD
8.2 (HIGH)
CVE Published
Oct 02, 2026 - 18:27 cve.org
HIGH

DescriptionCVE.org

Copernik XML Factory through 0.1.1, when running on its stock JDK provider, does not block XInclude resource resolution after an application enables XInclude on a factory returned by XmlFactories.newDocumentBuilderFactory() or XmlFactories.newSAXParserFactory(), or on an XMLReader passed through XmlFactories.harden(). The library's documented guarantee that XInclude resolution stays disabled therefore does not hold on that provider.

An application that parses untrusted XML in this configuration can be made to resolve xi:include references, allowing an attacker to read local files (information disclosure) or, through http hrefs, reach internal network endpoints (SSRF).

All of the following conditions must hold for an application to be affected:

  • it obtains a factory from XmlFactories.newDocumentBuilderFactory() or XmlFactories.newSAXParserFactory(), or hardens an externally obtained XMLReader with XmlFactories.harden();
  • the stock JDK provider is in effect, that is, Apache Xerces is not on the classpath;
  • XInclude is enabled, by calling setXIncludeAware(true) or the equivalent reader feature;
  • it parses XML from an untrusted source.

The Xerces provider (selected when Xerces is on the classpath) and the Android provider are not affected.

Applications are advised to upgrade to 0.1.2, which fixes the defect. As a workaround add Apache Xerces (xercesImpl) to the classpath so the library selects its unaffected Xerces provider.

Acknowledgements

The maintainer thank the following people for finding, reporting, and helping to remediate this issue:

  • Finders: Ta Duc Thien and Duc Anh Nguyen (Danzation)
  • Remediation developer: Ta Duc Thien
  • Tooling: Claude Code (Anthropic), Claude Opus 4.8

Technical POC Analysis

CWE-611: Improper Restriction of XML External Entity Reference.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

Copernik XML Factory version 0.1.1, when used with its default JDK provider and XInclude enabled, can allow an attacker to read local files or make internal network requests via malicious XML input. This affects applications that parse untrusted XML in this configuration, posing a confidentiality risk to sensitive data and internal systems. Leadership should prioritize remediation because the vulnerability is easy to exploit remotely and could lead to data breaches or internal network reconnaissance.

Business Impact: High
Compensating Controls

Apply vendor patch (upgrade to version 0.1.2). If immediate patching is not possible, disable XInclude or switch to an unaffected provider (Xerces or Android).

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Rare
obscure early-stage (0.1.x) Java XML library, minimal production adoption
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy