{"id":"CVE-2025-65945","aliases":["CVE-2025-65945","GHSA-869p-cjfg-cm3x"],"related":[],"kind":"vulnerability","state":"published","title":"auth0/node-jws improper HMAC signature verification vulnerability","summary":"auth0/node-jws is a JSON Web Signature implementation for Node.js. In versions 3.2.2 and earlier and version 4.0.0, auth0/node-jws has an improper signature verification vulnerability when using the HS256 algorithm under specific conditions. Applications are affected when they use the jws.createVerify() function for HMAC algorithms and use user-provided data from the JSON Web Signature protected header or payload in HMAC secret lookup routines, which can allow attackers to bypass signature verification. This issue has been patched in versions 3.2.3 and 4.0.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"auth0/node-jws is a JSON Web Signature implementation for Node.js. In versions 3.2.2 and earlier and version 4.0.0, auth0/node-jws has an improper signature verification vulnerability when using the HS256 algorithm under specific conditions. Applications are affected when they use the jws.createVerify() function for HMAC algorithms and use user-provided data from the JSON Web Signature protected header or payload in HMAC secret lookup routines, which can allow attackers to bypass signature verification. This issue has been patched in versions 3.2.3 and 4.0.1.","source":"cvelist"},{"lang":"en","text":"### Overview\nAn improper signature verification vulnerability exists when using auth0/node-jws with the HS256 algorithm under specific conditions.\n\n### Am I Affected?\nYou are affected by this vulnerability if you meet all of the following preconditions:\n\n1. Application uses the auth0/node-jws implementation of JSON Web Signatures, versions <=3.2.2 || 4.0.0\n2. Application uses the jws.createVerify() function for HMAC algorithms\n3. Application uses user-provided data from the JSON Web Signature Protected Header or Payload in the HMAC secret lookup routines\n\nYou are NOT affected by this vulnerability if you meet any of the following preconditions:\n1. Application uses the jws.verify() interface (note: `auth0/node-jsonwebtoken` users fall into this category and are therefore NOT affected by this vulnerability)\n2. Application uses only asymmetric algorithms (e.g. RS256)\n3. Application doesn’t use user-provided data from the JSON Web Signature Protected Header or Payload in the HMAC secret lookup routines\n\n### Fix\nUpgrade auth0/node-jws version to version 3.2.3 or 4.0.1\n\n### Acknowledgement\nOkta would like to thank Félix Charette for discovering this vulnerability.","format":"markdown","source":"ghsa"},{"lang":"es","text":"auth0/node-jws es una implementación de JSON Web Signature para Node.js. En las versiones 3.2.2 y anteriores y la versión 4.0.0, auth0/node-jws tiene una vulnerabilidad de verificación de firma incorrecta al usar el algoritmo HS256 bajo condiciones específicas. Las aplicaciones se ven afectadas cuando utilizan la función jws.createVerify() para algoritmos HMAC y usan datos proporcionados por el usuario del encabezado protegido o la carga útil de JSON Web Signature en rutinas de búsqueda de secretos HMAC, lo que puede permitir a los atacantes eludir la verificación de la firma. Este problema ha sido parcheado en las versiones 3.2.3 y 4.0.1.","source":"nvd"}],"published":"2025-12-04T16:54:15.000Z","modified":"2026-10-18T15:10:00.097Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-347"],"affected":[{"ranges":[{"version":"< 3.2.3","status":"affected"},{"version":">= 4.0.0, <= 4.0.1","status":"affected"}],"vendor":"auth0","product":"node-jws","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.2.3"}],"ecosystem":"npm","package":"jws","purl":"pkg:npm/jws","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.1"}],"ecosystem":"npm","package":"jws","purl":"pkg:npm/jws","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.2.3"},{"status":"affected","version":"4.0.0"}],"vendor":"auth0","product":"node-jws","cpe":"cpe:2.3:a:auth0:node-jws:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/auth0/node-jws/security/advisories/GHSA-869p-cjfg-cm3x","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/auth0/node-jws/commit/34c45b2c04434f925b638de6a061de9339c0ea2e","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65945","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/auth0/node-jws/commit/4f6e73f24df42f07d632dec6431ade8eda8d11a6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/auth0/node-jws","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/auth0/node-jws/releases/tag/v3.2.3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/auth0/node-jws/releases/tag/v4.0.1","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-12-05T18:31:41.971Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-65945","url":"https://www.cve.org/CVERecord?id=CVE-2025-65945","licence":"CVE Terms of Use","modified":"2025-12-05T18:31:52.043Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-869p-cjfg-cm3x","url":"https://github.com/advisories/GHSA-869p-cjfg-cm3x","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:31.797Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-65945","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65945","licence":"Public domain","modified":"2026-10-18T15:10:00.097Z"}],"updatedAt":"2026-11-25T22:59:08.293Z","epss":{"score":0.00332,"percentile":0.18935,"date":"2026-11-30T12:00:22.000Z"}}