CVE-2026-125334: Forge: TLS client crash on a handshake record received without a session
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-j8rw-jp99-435v
Summary
A null pointer dereference in the node-forge TLS client allows malicious servers or on-path attackers to crash Node.js applications by sending unexpected handshake records. Engineering teams using node-forge as a TLS client should update to the fixed version.
Who is affected
Applications using node-forge as a TLS client that pass socket data directly to connection.process() without catching exceptions are affected. If a connection has been closed via close_notify, explicit application closure, or prior to calling handshake(), an incoming handshake record triggers an uncaught TypeError. This causes the entire Node.js process to terminate, resulting in a denial of service for all active connections.
Exploitability
The vulnerability is remotely exploitable over a network with no user interaction required, but it requires high attack complexity because an attacker must successfully inject records under specific session states or act as an on-path attacker against unencrypted or reset connections. The CVSS 3.1 base score is 5.9 (Medium), and the EPSS score is 0.003 with no CISA KEV recorded.
Remediation
- Upgrade the npm package node-forge to version 1.4.3 or later.
- As a workaround, catch exceptions thrown by connection.process() and close the socket, or stop passing socket data to process() once the closed callback has been called until handshake() is called again.
How to check your project
- Check project dependency declarations in package.json or package-lock.json for the npm package node-forge version < 1.4.3.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | node-forge |
>= 0, < 1.4.3 | 1.4.3 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
Are TLS servers built with node-forge affected?
No. Servers create their sessions when receiving a ClientHello and are not vulnerable to this issue.
What is the root cause of the crash?
The client attempts to update handshake digests using a null session object after the connection has been reset or closed, resulting in a CWE-476 null pointer dereference.
Does this vulnerability lead to data theft or tampering?
No. There is no confidentiality or integrity impact; the consequence is limited to denial of service via process termination.
Original advisory description
References
- WEB https://github.com/digitalbazaar/forge/security/advisories/GHSA-j8rw-jp99-435v
- WEB https://github.com/digitalbazaar/forge/pull/1169
- WEB https://github.com/digitalbazaar/forge/commit/2cfaeb516cb3d4aff1c0569d39394df41c5cb17c
- PACKAGE https://github.com/digitalbazaar/forge
- WEB https://github.com/digitalbazaar/forge/releases/tag/v1.4.3
Source records: GHSA-j8rw-jp99-435v (OSV.dev) · EPSS by FIRST, 2026-11-26.