Integer Overflow or Wraparound Affecting node-forge package, versions <1.3.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NODEFORGE-14125097
  • published27 Nov 2025
  • disclosed26 Nov 2025
  • creditwodzen

Introduced: 26 Nov 2025

CVE-2025-66030  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade node-forge to version 1.3.2 or higher.

Overview

node-forge is a JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the derToOid function in the asn1.js file, which decodes ASN.1 structures containing OIDs with oversized arcs. An attacker can bypass security decisions based on OID validation by crafting malicious ASN.1 data that exploits 32-bit bitwise truncation.

References

CVSS Base Scores

version 4.0
version 3.1