Intel

AIKIDO-2026-614529

robrichards/xmlseclibs is vulnerable to Signature Verification Bypass

Signature Verification BypassGHSA-9wcx-p7hr-f935 Published Aug 27, 2026

50

Medium Risk

This Affects:

PHProbrichards/xmlseclibs
0.0.1 - 3.1.5
Fixed in 4.0.0
Are you affected? Scan for Free

TL;DR

XML signature verification in XMLSecurityDSig does not reject documents that carry a DOCTYPE. A crafted Id attribute that references an XML entity is expanded by getAttribute() but is invisible to the libxml2 XPath lookup used to locate the signed node, so verification can succeed against a different node than the application later reads. This allows signed-content confusion to slip a substituted node past an otherwise valid signature. The fix makes locateSignature() reject documents that contain a DOCTYPE by default through the new forbidDoctype behavior.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you verify XML signatures on documents from untrusted sources.

Background info

robrichards/xmlseclibs is vulnerable to Signature Verification Bypass in versions 0.0.1 - 3.1.5.

How to fix this

Upgrade the robrichards/xmlseclibs library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform