CVE-2025-66578
HIGH 7.5CVSS 3.1robrichards/xmlseclibs has an Libxml2 Canonicalization error which can bypass Digest/Signature validation
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.
- Published
- 9 Dec 2025
- Last modified
- 7 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-248
- Also known as
- GHSA-c4cc-x928-vjw9
- Sources
- NVDJSONOSV GHSA-c4cc-x928-vjw9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.0 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.0 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | xmlseclibs_project | xmlseclibscpe:2.3:a:xmlseclibs_project:xmlseclibs:*:*:*:*:*:*:*:* |
< 3.1.4 | 3.1.4 |
| OSV | Packagist | robrichards/xmlseclibs | < 3.1.4 | 3.1.4 |
References
- https://github.com/robrichards/xmlseclibs/blob/f4131320c6dcd460f1b0c67f16f8bf24ce4b5c3e/src/XMLSecurityDSig.php#L296 · Product, WEB
- https://github.com/robrichards/xmlseclibs/commit/69fd63080bc47a8d51bc101c30b7cb756862d1d6 · Patch, WEB
- https://github.com/robrichards/xmlseclibs/security/advisories/GHSA-c4cc-x928-vjw9 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-66578 · ADVISORY
- https://github.com/robrichards/xmlseclibs · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 9 Dec 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 8 Dec 2025)