Intel

AIKIDO-2026-626452

robrichards/xmlseclibs is vulnerable to Timing Attacks

Timing AttacksGHSA-w5f2-cpgp-pg76 Published Aug 27, 2026

60

Medium Risk

This Affects:

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

TL;DR

XMLSecurityKey::verifySignature() compares HMAC-SHA1 signatures with a non-constant-time comparison. Under favorable conditions this timing side channel can be used to recover a valid MAC byte by byte and forge a signature that verifies. The affected path also returned inconsistent truthy values rather than a strict result. The fix uses a constant-time comparison and returns a strict 1/0 result.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you verify HMAC-SHA1 signed XML from untrusted sources.

Background info

robrichards/xmlseclibs is vulnerable to Timing Attacks in versions 1.3.3 - 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