CVE-2026-118775 · GHSA-4642-5mcj-2rqw
Forge: ASN.1 OID first arc truncation in asn1.oidToDer
- Risk score
- 47/100
- CVSS
- 5.3 v3.1
- Exploit chance (30 days)
- 0.3%
- Published
- 29 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, asn1.oidToDer() in lib/asn1.js did not range-check the first two arcs of an OID. An application that accepted an untrusted OID string, checked or authorized that string, and then encoded it with asn1.oi…
- Affected
- node-forge (npm) <= 1.4.0
- Fix
- Upgrade node-forge to 1.4.1 or later.
- Exploitation
- Public proof of concept
Story map
At a glance
node-forge: Amber, patch this week. A denial of service vulnerability exists in Forge (node-forge) due to recursive TLS record processing consuming the call stack, allowing a remote peer to exhaust the stack and cause an uncaught exception. An attacker could exploit this vulnerability to cause a denial of service.
The flaws
- CVE-2026-118775: Forge: ASN.1 OID first arc truncation in asn1.oidToDer (CVSS 5.3 · EPSS 0%)
- CVE-2026-119187: Forge: Denial of service in TLS record processing via call stack exhaustion (CVSS 7.5 · EPSS 0%)
- CVE-2026-119191: Denial of service (CVSS 7.5 · EPSS 0%)
- CVE-2026-118777: Forge: Prototype Pollution in forge.http cookie handling via a malicious Set-Cookie (CVSS 6.5 · EPSS 0%)
The fix
Upgrade node-forge: 1.4.1 or later on your release line
Who is exposed: {'products': ['Forge', 'node-forge'], 'packages': [{'ecosystem': 'npm', 'name': 'node-forge', 'vulnerable': '<= 1.4.0'}], 'versions': ['<= 1.4.0']}
Where it stands
- Public proof of concept
Connects to
- Same weakness: Integer overflow (CWE-190). 184 other warnings in 30 days
- Same product: Earlier node-forge warnings. 2 in the last 90 days
Why it is Yellow
- CVSS 5.3 medium
- Public exploit or proof of concept referenced
- On your watchlist: npm
Affected packages
| Package | Ecosystem | Vulnerable | Fixed in |
|---|---|---|---|
| node-forge | npm | <= 1.4.0 | 1.4.1 |
References
- https://github.com/digitalbazaar/forge/commit/e56a3dde8e4e63bae566bb32546eeaf92f515e1e
- https://github.com/digitalbazaar/forge/releases/tag/v1.4.1
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-4642-5mcj-2rqw
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-4642-5mcj-2rqw
- https://github.com/advisories/GHSA-4642-5mcj-2rqw
- https://nvd.nist.gov/vuln/detail/CVE-2026-118775
- https://github.com/advisories/GHSA-4642-5mcj-2rqw
Original description
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, asn1.oidToDer() in lib/asn1.js did not range-check the first two arcs of an OID. An application that accepted an untrusted OID string, checked or authorized that string, and then encoded it with asn1.oidToDer() could emit DER representing a different, trusted OID from the one that was checked. DER parsing is not affected. This issue is fixed in version 1.4.1.
Last activity 30 Oct 2026. Patch Forecast updates every hour.