robrichards/xmlseclibs has an Libxml2 Canonicalization error which can bypass Digest/Signature validation
Affects robrichards/xmlseclibsSource GCVE Database
Not known to be exploited · CVSS 6.0 Medium : upgrade to 3.1.4 when convenient.
Data as of 27 Nov 2026, 05:06 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.0 |
|---|
- 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
Weaponized: 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 26 Nov 2026.
What to do
Upgrade robrichards/xmlseclibs to 3.1.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistrobrichards/xmlseclibs | 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
A patch is available in version 3.1.4 of robrichards/xmlseclibs that fixes this issue. Users should upgrade to version 3.1.4 or later. The recommended remediation is to treat canonicalization failures—such as exceptions or empty/nil outputs—as fatal and abort validation. Explicit checks should be added to reject or raise errors when canonicalization returns an empty or nil result.
Description
A vulnerability in robrichards/xmlseclibs prior to version 3.1.4 allows an attacker to bypass digest and signature validation due to a flaw in libxml2's canonicalization process. When canonicalization returns an empty string on invalid XML input, xmlseclibs incorrectly treats this as valid, enabling signature replay attacks. This can allow reuse of a previously valid signature to bypass authentication checks.
References
- github.com/robrichards/xmlseclibs/security/advisories/GHSA-c4cc-x928-vjw9 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-66578 (opens in a new tab)
- github.com/robrichards/xmlseclibs/commit/69fd63080bc47a8d51bc101c30b7cb756862d1d6 (opens in a new tab)
- github.com/robrichards/xmlseclibs (opens in a new tab)
- github.com/robrichards/xmlseclibs/blob/f4131320c6dcd460f1b0c67f16f8bf24ce4b5c3e/src/XMLSecurityDSig.php (opens in a new tab)