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.
Published: 2026-10-30
Score: 8.2 High
EPSS: n/a
KEV: No
Impact: Data disclosure via XInclude exploitation
Action: Patch Now
AI Analysis

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.

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

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

Fri, 30 Oct 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Copernik-eu
Copernik-eu copernik-xml-factory
Vendors & Products Copernik-eu
Copernik-eu copernik-xml-factory

Fri, 30 Oct 2026 19:15:00 +0000

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'}


Subscriptions

Copernik-eu Copernik-xml-factory
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-30T18:59:14.076Z

Reserved: 2026-07-10T17:12:17.237Z

Link: CVE-2026-61586

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-30T19:18:27.840

Modified: 2026-10-30T19:39:14.897

Link: CVE-2026-61586

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T22:48:58Z

Weaknesses
  • CWE-611

    Improper Restriction of XML External Entity Reference