CVE-2025-66578: robrichards xmlseclibs · Uncaught Exception
Affects robrichards xmlseclibsSource CVE Database V5
Not known to be exploited · CVSS 6.0 Medium : upgrade to 3.1.4 when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 15% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.1.4
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 9 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade robrichards/xmlseclibs to 3.1.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Packagistrobrichards/xmlseclibspkg:composer/robrichards/xmlseclibsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade xmlseclibs to version 3.1.4 or later, which contains the official fix for this vulnerability. If upgrading is not immediately feasible, implement strict validation checks to treat any canonicalization failure—such as exceptions, nil, or empty outputs—as fatal errors that abort XML signature validation. Code audits should be conducted to ensure no silent acceptance of empty canonicalization results occurs. Additionally, restrict privileges to minimize the risk of high-privilege account compromise, and monitor XML processing logs for anomalies indicative of signature bypass attempts. Employ defense-in-depth by validating XML inputs at multiple layers and using alternative signature verification libraries where possible. Regularly update libxml2 to the latest secure versions to reduce underlying library risks. Finally, conduct penetration testing focused on XML signature validation to detect potential exploitation.
Description
xmlseclibs is a library written in PHP for working with XML Encryption and Signatures. Versions 3.1.3 contain an authentication bypass vulnerability due to a flaw in the libxml2 canonicalization process during document transformation. When libxml2’s canonicalization is invoked on an invalid XML input, it may return an empty string rather than a canonicalized node.xmlseclibs then proceeds to compute the DigestValue over this empty string, treating it as if canonicalization succeeded. This issue is fixed in version 3.1.4. Workarounds include treating canonicalization failures (exceptions or nil/empty outputs) as fatal and aborting validation, and/or adding explicit checks to reject when canonicalize returns nil/empty or raises errors.
References
- github.com/robrichards/xmlseclibs/security/advisories/GHSA-c4cc-x928-vjw9 (opens in a new tab)
- github.com/robrichards/xmlseclibs/commit/69fd63080bc47a8d51bc101c30b7cb756862d1d6 (opens in a new tab)
- github.com/robrichards/xmlseclibs/blob/f4131320c6dcd460f1b0c67f16f8bf24ce4b5c3e/src/XMLSecurityDSig.php (opens in a new tab)