CVE-2025-66578

HIGH CVSS 3.1: 7.5 EPSS 0.26%
Updated Oct 07, 2026
Xmlseclibs_Project
Parameter Value
CVSS 7.5 (HIGH)
Affected Versions before 3.1.4
Fixed In 3.1.4
Type CWE-248 (Uncaught Exception)
Vendor Xmlseclibs_Project
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Xmlseclibs_Project Xmlseclibs
cpe:2.3:a:xmlseclibs_project:xmlseclibs:*:*:*:*:*:*:*:*
— 3.1.4