CVE-2026-118778 · GHSA-525v-9gp9-w22h
Forge: TLS client crash when the server sends no certificate
- Risk score
- 45/100
- CVSS
- 5.9 v3.1
- 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, the affected implementation used forge.tls.createConnection(), c.session.serverCertificate, RSA key exchange to process the relevant input or security decision. node-forge's TLS client checked the wrong…
- 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. Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, the affected implementation used pem.decode(), lib/pem.js, missing END line to process the relevant input or security decision. node-forge used polynomial-time regular expressions in pem.decode(), inclu…
The flaws
- CVE-2026-118778: Forge: TLS client crash when the server sends no certificate (CVSS 5.9)
- CVE-2026-118779: Forge: Regular expression denial of service in PEM decoding (pem.decode) (CVSS 7.5)
- CVE-2026-118782: Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration count (CVSS 7.5)
- CVE-2026-119187: Forge: Denial of service in TLS record processing via call stack exhaustion (CVSS 7.5)
The fix
Upgrade node-forge: 1.4.1 or later on your release line
Who is exposed: node-forge (npm) <= 1.4.0
Where it stands
- Public proof of concept
Connects to
- Same weakness: Null pointer dereference (CWE-476). 117 other warnings in 30 days
Why it is Yellow
- CVSS 5.9 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/7be9fbd40df2e2f15f29fea2846b1c87d58f6888
- https://github.com/digitalbazaar/forge/releases/tag/v1.4.1
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-525v-9gp9-w22h
- https://github.com/advisories/GHSA-525v-9gp9-w22h
- https://nvd.nist.gov/vuln/detail/CVE-2026-118778
- https://github.com/advisories/GHSA-525v-9gp9-w22h
Original description
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, the affected implementation used forge.tls.createConnection(), c.session.serverCertificate, RSA key exchange to process the relevant input or security decision. node-forge's TLS client checked the wrong property when deciding whether a server certificate was missing. A malicious TLS server or on-path peer could omit the Certificate message and reach code that dereferenced the absent certificate, causing an uncaught exception and terminating the connection or process. This issue is fixed in version 1.4.1.
Last activity 30 Oct 2026. Patch Forecast updates every hour.