CVE-2026-61586

Copernik XML Factory: Improper restriction of XInclude resource resolution in Copernik XML Factory (stock JDK provider)

Published Oct 30, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Copernik XML Factory prior to v0.1.2 fails to restrict XInclude resource resolution when the stock JDK provider is used and XInclude processing is enabled. An application that receives untrusted XML can embed an xi:include element pointing to arbitrary local files or HTTP URLs. This can expose sensitive data from the file system or allow the attacker to reach internal network endpoints via server‑side request forgery. The flaw is a CWE‑611 vulnerability that allows uncontrolled inclusion of external resources, compromising confidentiality and potentially availability if resources are exhausted.

Affected Systems

The vulnerability affects the Copernik XML Factory library published by copernik-eu. Versions prior to 0.1.2 are affected, while the 0.1.2 release contains a fix. Applications that configure XmlFactories.newDocumentBuilderFactory() or newSAXParserFactory() with XInclude enabled and use the stock JDK provider without including the Apache Xerces provider are susceptible.

Risk and Exploitability

A CVSS score of 8.2 indicates high severity. Because the flaw relies on configuration of XInclude and the presence of the stock JDK provider, it can be exercised by servers that parse untrusted XML on the internet. The absence of an available EPSS score means the likelihood cannot be quantified, but the vulnerability is not listed in the CISA KEV catalog. The main exploitation path requires the attacker to supply crafted XML to an application that has enabled XInclude, which many enterprise services do. If the application does not enable XInclude or uses a protected provider such as Xerces, the risk is mitigated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Copernik XML Factory to version 0.1.2 or a later release that enforces XInclude restrictions.
  • Ensure that the Apache Xerces provider or the Android provider is on the classpath, which automatically protects against the flaw.
  • If updating the library is not feasible, disable XInclude processing by setting setXIncludeAware(false) or avoiding the XIncludeAware feature.

Generated by OpenCVE AI on October 30, 2026 at 20:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xm28-xvqc-gxxg Copernik XML Factory (stock JDK provider) has Improper restriction of XInclude resource resolution
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Copernik-eu
Copernik-eu copernik-xml-factory
Vendors & Products Copernik-eu
Copernik-eu copernik-xml-factory
Type Values Removed Values Added
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.
Title Copernik XML Factory: Improper restriction of XInclude resource resolution in Copernik XML Factory (stock JDK provider)
Weaknesses CWE-611
References
Metrics cvssV4_0

{'score': 8.2, 'vector': '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'}

Weaknesses
  • CWE-611

    Improper Restriction of XML External Entity Reference

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 5, 2026, 2:30 AM
Reserved
Jul 10, 2026, 5:12 PM
Status
Deferred
Published
Oct 30, 2026, 7:18 PM
Modified
Nov 5, 2026, 3:17 AM
Severity
Important
Public date
Oct 30, 2026, 6:59 PM