GHSA-c27r-x354-4m68 json
xml-crypto's HMAC-SHA1 signatures can bypass validation via key confusion
published 6y ago modified 4y ago
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
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.
Patch / fix
Is GHSA-c27r-x354-4m68 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | xml-crypto | <2.0.0 |
2.0.0 |
Classification
- Weakness
-
- CWE-287 Improper Authentication
References
-
github.com
/yaronn/xml-crypto/commit/3d9db712e6232c765cd2ad6bd2902b88a0d22100
web
-
github.com
/yaronn/xml-crypto/security/advisories/GHSA-c27r-x354-4m68
web
-
github.com
/yaronn/xml-crypto
package
-
npmjs.com
/package/xml-crypto
web
-
github.com
/node-saml/xml-crypto/security/advisories/GHSA-c27r-x354-4m68
advisory
Sources
- GitHub Advisory GHSA-c27r-x354-4m68
- Maintainer advisory GHSA-c27r-x354-4m68
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of node-saml/xml-crypto published their own advisory on GitHub. Reviewed sources take precedence over it.