Forge (node-forge): Resource exhaustion in ASN.1 parsing via nested BIT STRINGs
Forge (node-forge) is a JavaScript implementation of TLS and cryptographic functions. Crafted DER or PEM input with deeply nested BIT STRINGs makes asn1.fromDer() consume excessive CPU time and memory, because the maxDepth limit was not applied to BIT STRING contents. A remote, unauthenticated attacker can exhaust resources and crash a Node.js process, so the impact is limited to availability. This is an incomplete fix of CVE-2025-66031.
Digitalbazaar · Forge (node-forge)
