Vulnerabilities in pkg:npm/jws
PACKAGECVE-2025-65945 is a HIGH (CVSS 7.5) auth0/node-jws improperly verifies hmac signature vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Jws libraries in the npm ecosystem. The issue involves auth0/node-jws improperly verifies hmac signature. Remediation is available by upgrading affected packages to version 4.0.1, 3.2.3.
pkg:npm/jws
Vulnerability advisories affecting package pkg:npm/jws. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-869p-cjfg-cm3x | CVE-2025-65945 | HIGH | auth0/node-jws Improperly Verifies HMAC Signature |
| GHSA-gjcw-v447-2w7q | CVE-2016-1000223 | HIGH | Forgeable Public/Private Tokens in jws |
CVE-2025-65945 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2025-65945
To remediate this vulnerability, upgrade all affected Jws dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install jws@4.0.1
npm install jws@3.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls jws
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-65945, inspect your project dependencies using npm:
npm ls jws
Analyze the terminal output to locate any version of Jws in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.1), your application is affected.
Note: The npm ls jws command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Jws, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-65945 Affected Jws Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2025-65945?
Which Jws versions are affected?
What version fixes CVE-2025-65945?
Is jws affected?
What is the CVSS score of CVE-2025-65945?
What CWE is associated with CVE-2025-65945?
How can I check npm dependencies for CVE-2025-65945?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-869p-cjfg-cm3x",
"modified" : "2025-12-04T22:50:03Z",
"published" : "2025-12-04T16:54:15Z",
"aliases" : [ "CVE-2025-65945" ],
"summary" : "auth0/node-jws Improperly Verifies HMAC Signature",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jws"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.2.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "jws"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.1"
} ]
} ],
"versions" : [ "4.0.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/auth0/node-jws/security/advisories/GHSA-869p-cjfg-cm3x"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-65945"
}, {
"type" : "WEB",
"url" : "https://github.com/auth0/node-jws/commit/34c45b2c04434f925b638de6a061de9339c0ea2e"
}, {
"type" : "WEB",
"url" : "https://github.com/auth0/node-jws/commit/4f6e73f24df42f07d632dec6431ade8eda8d11a6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/auth0/node-jws"
}, {
"type" : "WEB",
"url" : "https://github.com/auth0/node-jws/releases/tag/v3.2.3"
}, {
"type" : "WEB",
"url" : "https://github.com/auth0/node-jws/releases/tag/v4.0.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-04T16:54:15Z",
"nvd_published_at" : "2025-12-04T19:16:05Z"
}
}