External risk intelligence

XML::Sig Library Vulnerable to XPath Injection.

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-9390

XML::Sig is a Perl library used for XML signature verification. While it may be utilized in internet-facing applications processing XML (such as SAML or web services), it is a code-level dependency rather than a standalone service, gateway, or appliance. Exposure depends entirely on how a developer integrates the library within their specific application architecture.

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory details a critical vulnerability in the XML::Sig Perl library, affecting how XML documents are verified. An attacker could exploit this by manipulating a document's URI to inject malicious XPath commands, potentially allowing them to bypass verification and control which data is processed. This could have broad implications for systems relying on this library for secure XML processing.

  • Injects malicious commands into XML verification.
  • Impacts systems verifying digital signatures in XML.
  • Confirm relevance; address if impacted.

Attack Path

How an attacker could exploit the issue

An attacker could target applications that use the XML::Sig library to verify XML signatures. By crafting a malicious URI within an XML document, an attacker could inject XPath expressions. This injection would allow the attacker to manipulate which parts of the XML document are processed for signature verification, potentially leading to a compromise of the integrity and confidentiality of the data.

  • Network exposure required.
  • Triggered by processing a crafted XML.
  • Compromises data integrity and confidentiality.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an attacker to manipulate XML signature verification processes when the affected Perl library is used. By crafting specific input, an attacker may alter which parts of an XML document are verified, potentially leading to the acceptance of a forged signature. This could affect the integrity and authenticity of XML data processed by applications using this library, when supported by the advisory.

  • XML signature verification processes.
  • Crafted input can alter verification targets.
  • Integrity and authenticity of XML data.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability in XML::Sig affects applications that use the library for XML signature verification. Application owners and development teams are likely responsible for identifying and remediating this issue. The first practical step is to determine where XML::Sig is integrated into your systems, assess its exposure, and confirm ownership of the affected applications.

  • Confirm application ownership and scope.
  • Verify affected XML processing paths.
  • Plan coordinated remediation efforts.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the XML::Sig library?

XML::Sig is a Perl library designed to verify digital signatures on XML documents. Developers integrate it into applications—such as those handling SAML or web services—to ensure that the content of an XML file has not been tampered with and comes from a trusted source.

How does CVE-2026-9390 allow XPath injection?

This vulnerability, classified as CWE-643 (Improper Neutralization of Data within XPath Expressions), occurs because the library fails to sanitize input. When verifying a signature, the library builds an XPath command using data directly from the document. An attacker can insert special characters to break out of the intended command and inject their own, tricking the library into verifying the wrong parts of the document.

What triggers this vulnerability?

An attacker triggers this by submitting a specially crafted XML document containing a malicious URI value. The bug is specifically tied to how the library parses this URI during signature verification. It is not triggered by standard, well-formed XML documents that follow proper ID grammar rules and do not contain injected XPath operators.

Is my system at risk?

Halo Surface Signal indicates that risk depends on your specific application architecture. Because XML::Sig is a code-level dependency, you should evaluate if your applications are internet-facing and process untrusted XML input using this library. If your application handles external XML data, it may be reachable by an attacker.

How should I respond to this threat?

Begin by auditing your software inventory to locate where XML::Sig is integrated. Once identified, work with your development team to determine if these code paths process untrusted XML input. Prioritize checking applications that accept external data, and prepare to update the library to version 0.71 or later to resolve the issue.

References