CVE-2025-65945
JSON

7.5high

auth0/node-jws improper HMAC signature verification vulnerability

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.33% (higher than 19% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-869p-cjfg-cm3x

Description

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.

Affected

Product or packageVersionsReported by
auth0 node-jws< 3.2.3, >= 4.0.0, <= 4.0.1, before 3.2.3, 4.0.0CVE List, NVD
jws (npm)before 3.2.3, from 4.0.0 before 4.0.1GitHub Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-347

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Overview

An improper signature verification vulnerability exists when using auth0/node-jws with the HS256 algorithm under specific conditions.

Am I Affected?

You are affected by this vulnerability if you meet all of the following preconditions:

  1. Application uses the auth0/node-jws implementation of JSON Web Signatures, versions <=3.2.2 || 4.0.0
  2. Application uses the jws.createVerify() function for HMAC algorithms
  3. Application uses user-provided data from the JSON Web Signature Protected Header or Payload in the HMAC secret lookup routines

You are NOT affected by this vulnerability if you meet any of the following preconditions:

  1. Application uses the jws.verify() interface (note: auth0/node-jsonwebtoken users fall into this category and are therefore NOT affected by this vulnerability)
  2. Application uses only asymmetric algorithms (e.g. RS256)
  3. Application doesn’t use user-provided data from the JSON Web Signature Protected Header or Payload in the HMAC secret lookup routines
Fix

Upgrade auth0/node-jws version to version 3.2.3 or 4.0.1

Acknowledgement

Okta would like to thank Félix Charette for discovering this vulnerability.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-65945 changed 2025-12-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-869p-cjfg-cm3x changed 2026-09-10CC-BY-4.0
NVDCVE-2025-65945 changed 2026-10-18Public domain