xml-crypto's HMAC-SHA1 signatures can bypass validation via key confusion
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-287.
Summary
### 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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | xml-crypto (npm) | before 2.0.0 | 2.0.0 | Patch available | GHSA-c27r-x354-4m68 |
- xml-crypto (npm) Vendor— Affected before 2.0.0 Fixed in 2.0.0 Patch available GHSA-c27r-x354-4m68
Remediation
- Fix · GHSA-c27r-x354-4m68 xml-crypto (npm) Fixed in 2.0.0 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-c27r-x354-4m68
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences