Improper Verification of Cryptographic Signature Affecting jws package, versions <3.2.3>=4.0.0 <4.0.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-JWS-14188253
  • published5 Dec 2025
  • disclosed4 Dec 2025
  • creditFélix Charette

Introduced: 4 Dec 2025

NewCVE-2025-65945  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade jws to version 3.2.3, 4.0.1 or higher.

Overview

jws is an Implementation of JSON Web Signatures

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via the createVerify function when using HS256 HMAC algorithms and incorporating user-provided data from the JSON Web Signature Protected Header or Payload in HMAC secret lookup routines. An attacker can bypass signature verification by manipulating the header or payload to influence the secret lookup process.

Note:

This is only exploitable if the application uses the createVerify function for HMAC algorithms - and not the jws.verify() interface - and relies on user-provided data from the header or payload in secret lookup routines.

CVSS Base Scores

version 4.0
version 3.1