CVE-2025-40934 XML-Sig prior to 0.68 for Perl improperly validates XML without signatures

Critical 9.3 Published Updated

Attackers can bypass XML signature validation by removing signatures, allowing unsigned documents to pass verification checks in Perl applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-40934?

CVE-2025-40934 is a critical vulnerability in TIMLEGGE XML::Sig, published on 26 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

XML-Sig versions 0.27 through 0.67 for Perl incorrectly validates XML files if signatures are omitted.

An attacker can remove the signature from the XML document to make it pass the verification check.

XML-Sig is a Perl module to validate signatures on XML files.  An unsigned XML file should return an error message.  The affected versions return true when attempting to validate an XML file that contains no signatures.

Weakness: CWE-347

Which versions are affected by CVE-2025-40934?

It affects 1 product.

Products include Xml\ \.

How do I fix CVE-2025-40934?

No fix has been published for CVE-2025-40934 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-40934 being exploited?

There is no known exploitation of CVE-2025-40934 in the wild and no public exploit code.

Sources

Also known as GHSA-v825-mc9m-64qr.

Is CVE-2025-40934 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free