Security mailing lists by PureSourceCode

GHSA-c27r-x354-4m68

HIGH

xml-crypto's HMAC-SHA1 signatures can bypass validation via key confusion

Impact

An attacker can inject an HMAC-SHA1 signature that is valid using only knowledge of the RSA public key. This allows bypassing signature validation.

Patches

Version 2.0.0 has the fix.

Workarounds

The recommendation is to upgrade. In case that is not possible remove the 'http://www.w3.org/2000/09/xmldsig#hmac-sha1' entry from SignedXml.SignatureAlgorithms.

Published
27 Oct 2020
Last modified
2 Aug 2022
Weakness
CWE-287
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm xml-crypto < 2.0.0 2.0.0

References

History

  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 27 Oct 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.