Integer Overflow or Wraparound Affecting org.webjars.npm:node-forge package, versions [,1.4.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.31% (25th 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 IDSNYK-JAVA-ORGWEBJARSNPM-22113965
  • published1 Nov 2026
  • disclosed26 Oct 2026
  • creditwzc

Introduced: 26 Oct 2026

NewCVE-2026-118775  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade org.webjars.npm:node-forge to version 1.4.1 or higher.

Overview

org.webjars.npm:node-forge is a WebJar for node-forge.

Affected versions of this package are vulnerable to Integer Overflow or Wraparound in the asn1.oidToDer function in lib/asn1.js. An attacker can make the encoder emit DER for a different, trusted OID than the string the application validated, by supplying an OID whose first two arcs are out of range, because oidToDer computes 40 * arc1 + arc2 and writes the result with putByte(), which keeps only the low 16 bits, so 0.42.840.113549.1.1.1 encodes to the DER for 1.2.840.113549.1.1.1 (rsaEncryption). This affects only applications that accept untrusted OID strings, validate them as strings, and then encode them with node-forge into structures such as certificates or CSRs, while decoding DER is unaffected.

Note: This is a bypass of the fix for the vulnerability described in CVE-2025-66030.

CVSS Base Scores

version 4.0
version 3.1