What’s Vulnerable › Vulnerabilities
CVE-2025-66031: node-forge ASN.1 Unbounded Recursion
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-11-26 · updated 2026-10-18
- Weakness: CWE-674
Description
Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. An Uncontrolled Recursion vulnerability in node-forge versions 1.3.1 and below enables remote, unauthenticated attackers to craft deep ASN.1 structures that trigger unbounded recursive parsing. This leads to a Denial-of-Service (DoS) via stack exhaustion when parsing untrusted DER inputs. This issue has been patched in version 1.3.2.
Affected products
- digitalbazaar forge: before 1.3.2 — fixed in 1.3.2
- Npm Node-Forge: before 1.3.2 — fixed in 1.3.2
How to fix
Upgrade to a fixed version: digitalbazaar forge 1.3.2; Npm Node-Forge 1.3.2. Check the vendor advisory for mitigations.
References
- https://github.com/digitalbazaar/forge/commit/260425c6167a38aae038697132483b5517b26451
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-554w-wpv2-vw27
Get alerted when CVE-2025-66031 or the next vulnerability affects your stack