Uncontrolled Recursion Vulnerability in node-forge affecting Digital Bazaar
CVE-2025-66031
8.7HIGH
What is CVE-2025-66031?
The node-forge library, utilized for Transport Layer Security in JavaScript, contains an uncontrolled recursion vulnerability. This issue affects versions 1.3.1 and below, allowing remote, unauthenticated attackers to create deep ASN.1 structures. When these structures are parsed, they can trigger unbounded recursive parsing, resulting in a Denial-of-Service (DoS) due to stack exhaustion, mainly when processing untrusted DER inputs. This vulnerability has been addressed in version 1.3.2, which mitigates the risk by preventing the excessive depth of recursion.
Affected Version(s)
forge < 1.3.2
