Vulnerabilities in pkg:npm/node-forge
PACKAGECVE-2026-85393 is a HIGH (CVSS 7.5) node-forge rsa pkcs#1 v1.5 signature vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Node forge libraries in the npm ecosystem. The issue involves node-forge rsa pkcs#1 v1.5 signature verification accepts extra nested digestalgorithm elements. Remediation is available in the latest vendor maintenance releases.
pkg:npm/node-forge
Vulnerability advisories affecting package pkg:npm/node-forge. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-86w9-cpqp-85rv | CVE-2026-85393 | HIGH | node-forge RSA PKCS#1 v1.5 signature verification accepts extra nested DigestAlgorithm elements |
| GHSA-2328-f5f3-gj25 | CVE-2026-33896 | HIGH | Forge has a basicConstraints bypass in its certificate chain verification (RFC 5280 violation) |
| GHSA-q67f-28xg-22rw | CVE-2026-33895 | HIGH | Forge has signature forgery in Ed25519 due to missing S > L check |
| GHSA-ppp5-5v6c-4jwp | CVE-2026-33894 | HIGH | Forge has signature forgery in RSA-PKCS due to ASN.1 extra field |
| GHSA-5m6q-g25r-mvwx | CVE-2026-33891 | HIGH | Forge has Denial of Service via Infinite Loop in BigInteger.modInverse() with Zero Input |
| GHSA-65ch-62r8-g69g | CVE-2025-66030 | MODERATE | node-forge is vulnerable to ASN.1 OID Integer Truncation |
| GHSA-554w-wpv2-vw27 | CVE-2025-66031 | HIGH | node-forge has ASN.1 Unbounded Recursion |
| GHSA-5gfm-wpxj-wjgq | CVE-2025-12816 | HIGH | node-forge has an Interpretation Conflict vulnerability via its ASN.1 Validator Desynchronization |
| GHSA-8fr3-hfg3-gpgp | CVE-2022-0122 | MODERATE | Open Redirect in node-forge |
| GHSA-92xj-mqp7-vmcj | CVE-2020-7720 | HIGH | Prototype Pollution in node-forge |
| GHSA-x4jg-mjrx-434g | CVE-2022-24772 | HIGH | Improper Verification of Cryptographic Signature in node-forge |
| GHSA-2r2c-g63r-vccr | CVE-2022-24773 | MODERATE | Improper Verification of Cryptographic Signature in `node-forge` |
| GHSA-cfm4-qjh2-4765 | CVE-2022-24771 | HIGH | Improper Verification of Cryptographic Signature in node-forge |
| GHSA-5rrq-pxf6-6jx5 | - | LOW | Prototype Pollution in node-forge debug API. |
| GHSA-wxgw-qj99-44c2 | - | LOW | Prototype Pollution in node-forge util.setPath API |
| GHSA-gf8q-jrpm-jvxq | - | LOW | URL parsing in node-forge could lead to undesired behavior. |
CVE-2026-85393 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-2026-85393
To remediate this vulnerability, upgrade all affected Node forge 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 node-forge@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls node-forge
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-85393, inspect your project dependencies using npm:
npm ls node-forge
Analyze the terminal output to locate any version of Node forge in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls node-forge 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 Node forge, 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-2026-85393 Affected Node forge Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
node-forge
|
npm |
≤ 1.4.0
|
|
References
Frequently Asked Questions
What is CVE-2026-85393?
Which Node forge versions are affected?
What version fixes CVE-2026-85393?
Is node-forge affected?
What is the CVSS score of CVE-2026-85393?
What CWE is associated with CVE-2026-85393?
How can I check npm dependencies for CVE-2026-85393?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-86w9-cpqp-85rv",
"modified" : "2026-10-01T21:09:09Z",
"published" : "2026-09-03T21:31:15Z",
"aliases" : [ "CVE-2026-85393" ],
"summary" : "node-forge RSA PKCS#1 v1.5 signature verification accepts extra nested DigestAlgorithm elements",
"details" : "node-forge through 1.4.0 fails to validate element count in nested DigestAlgorithm sequences during RSA PKCS#1 v1.5 signature verification. Attackers can embed garbage bytes inside the DigestAlgorithm sequence to forge valid signatures for arbitrary messages using low-exponent RSA keys. This is an incomplete fix for CVE-2026-33894.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "node-forge"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-85393"
}, {
"type" : "WEB",
"url" : "https://github.com/digitalbazaar/forge/issues/1149"
}, {
"type" : "WEB",
"url" : "https://github.com/digitalbazaar/forge/pull/1152"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-ppp5-5v6c-4jwp"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/digitalbazaar/forge"
}, {
"type" : "WEB",
"url" : "https://github.com/digitalbazaar/forge/blob/v1.4.0/lib/asn1.js"
}, {
"type" : "WEB",
"url" : "https://github.com/digitalbazaar/forge/blob/v1.4.0/lib/rsa.js"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/node-forge-through-1.4.0-rsa-pkcs-1-1.5-signature-forgery-via-nested-digestalgorithm-padding"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-01T21:09:09Z",
"nvd_published_at" : "2026-09-03T19:17:31Z"
}
}