High

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

  • Disclosed: 27.10.2020
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package xml-crypto < 2.0.0 2.0.0

References

CVSS score -
Weakness (CWE)
CWE-287
Platform
npm
Package
xml-crypto
Disclosed
27.10.2020
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-c27r-x354-4m68 - CC BY 4.0

Vulnerability history: xml-crypto

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
10.2020 03.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 3
  • High 1

Disclosures per year

  1. 2020: 1
  2. 2021: 0
  3. 2022: 0
  4. 2023: 0
  5. 2024: 1
  6. 2025: 2
  7. 2026: 0
  1. Critical CVE-2025-29775 >= 4.0.0, < 6.0.1, >= 3.0.0, < 3.2.1, < 2.1.6 6.0.1, 3.2.1, 2.1.6
  2. Critical CVE-2025-29774 >= 4.0.0, < 6.0.1, >= 3.0.0, < 3.2.1, < 2.1.6 6.0.1, 3.2.1, 2.1.6
  3. xml-crypto's HMAC-SHA1 signatures can bypass validation via key confusion this entry
    High ghsa-c27r-x354-4m68 < 2.0.0 2.0.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.