{"id":"GHSA-c27r-x354-4m68","aliases":["GHSA-c27r-x354-4m68"],"related":[],"kind":"vulnerability","state":"published","title":"xml-crypto's HMAC-SHA1 signatures can bypass validation via key confusion","summary":"### Impact\nAn attacker can inject an HMAC-SHA1 signature that is valid using only knowledge of the RSA public key. This allows bypassing signature validation.\n\n### Patches\nVersion 2.0.0 has the fix.\n\n### Workarounds\nThe 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\nAn attacker can inject an HMAC-SHA1 signature that is valid using only knowledge of the RSA public key. This allows bypassing signature validation.\n\n### Patches\nVersion 2.0.0 has the fix.\n\n### Workarounds\nThe 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.","format":"markdown","source":"ghsa"}],"published":"2020-10-27T20:39:46.000Z","modified":"2022-08-02T20:03:05.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.0"}],"ecosystem":"npm","package":"xml-crypto","purl":"pkg:npm/xml-crypto","source":"ghsa"}],"references":[{"url":"https://github.com/yaronn/xml-crypto/security/advisories/GHSA-c27r-x354-4m68","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/yaronn/xml-crypto/commit/3d9db712e6232c765cd2ad6bd2902b88a0d22100","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/yaronn/xml-crypto","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/xml-crypto","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c27r-x354-4m68","url":"https://github.com/advisories/GHSA-c27r-x354-4m68","licence":"CC-BY-4.0","modified":"2022-08-02T20:03:05.000Z"}],"updatedAt":"2026-11-25T22:56:45.003Z"}