CVE-2025-66578
published medium CVSS 3.1 · 6.0robrichards/xmlseclibs has an Libxml2 Canonicalization error which can bypass Digest/Signature validation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| robrichards | — | xmlseclibs< 3.1.4 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| robrichards | xmlseclibs | < 3.1.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-248 CWE-248: Uncaught Exception
References
3Provider assertions
2GitHub_M · cna
robrichards/xmlseclibs has an Libxml2 Canonicalization error which can bypass Digest/Signature validation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d96cd0dd6620644d4c453c237e62f2145d0f80baba91e977ed8c6fc16013a090
- Ingested
- 23 Sep 2026, 08:56:35 UTC
- Source record
- Official CVE record