Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain on-path position or host malicious server
-
DeliveryAlter ServerHello compression byte (e.g. 0xff)
-
ExploitSend ServerHello, Certificate, ServerHelloDone
-
ExecutionClient throws at createConnectionState()
-
ImpactUncaught exception crashes Node.js process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires the target to be running node-forge <= 1.4.2 in a TLS CLIENT role (forge.tls directly, forge.tls.wrapSocket, or forge.http) AND passing network socket data into connection.process() WITHOUT catching exceptions - the GHSA states the documented workaround is exactly to catch exceptions from process() and close the socket. The attacker must be either the server the client connects to, or an on-path attacker able to modify bytes of the genuine ServerHello before the server Finished message (the ServerHello compression_method is unauthenticated at that point, so certificate verification does not prevent it). Limiting factors: forge.tls SERVERS are not affected; applications that already wrap process() in try/catch survive the thrown error; and the on-path variant requires network interception capability. There is no impact to confidentiality or integrity - the only outcome is process termination (dropping all connections on that process). |
| Impact | This is a denial-of-service-only flaw (A:H, C:N, I:N) in node-forge's TLS client. The CVSS 3.1 vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H = 5.9 Moderate) reflects network reachability with no authentication or user interaction, but AC:H because the most general exploitation path - an on-path attacker flipping the ServerHello compression byte on an otherwise legitimate connection - requires a privileged network position; note that a directly malicious server the client connects to needs no such position, a lower-complexity path the single CVSS score does not separate out. CVSS 4.0 (informational, from the GHSA) is CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H = 8.2, scoring higher only because 4.0 maps AC:H into AT:P and has no direct AC:H counterpart; the vendor's authoritative rating follows 3.1 (Moderate). No EPSS score, no CISA KEV listing, and no SSVC automatable/technical-impact decision were supplied in the input, so those signals cannot be weighed; vuln.today's priority label is 'this_month', consistent with a moderate, impact-limited bug rather than an emergency. A working reporter PoC (tests/pocs/ghsa-w4xr-hqv8-ch44.js) ships in the fix commit, so trigger reproduction is trivial, but there is no evidence of active exploitation. Net: a real but bounded issue - worst case is a process crash dropping all connections, with no data exposure - that warrants prompt patching on the stated monthly cadence rather than crisis response. |
| Exploit ScenarioDerived | A Node.js application uses forge.tls as a client (directly, via forge.tls.wrapSocket, or via forge.http) and feeds raw socket bytes to connection.process() without a try/catch. A malicious server the client connects to - or an on-path attacker who rewrites the compression_method byte of a genuine, still-unauthenticated ServerHello to e.g. 0xff - causes tls.createConnectionState() to throw 'Unsupported compression algorithm.' at ServerHelloDone; the uncaught exception terminates the process. A full proof-of-concept exists in the vendor's own fix commit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
Denial of service in node-forge (Forge) affects TLS clients at version 1.4.2 and earlier: the client stores the ServerHello compression_method without verifying that it was offered, and later throws an uncaught Error from connection.process() when it handles ServerHelloDone. Remote attackers - either the server the client connects to, or an on-path attacker who flips the still-unauthenticated compression byte of a genuine ServerHello - can terminate a Node.js process that passes socket data into process() without catching exceptions, taking down every connection that process holds; there is no confidentiality or integrity impact and forge.tls servers are not affected. The flaw is unauthenticated (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, 5.9), exploitation additionally requires the client role plus unhandled exceptions, and a public PoC reference exists; it is not verified as working exploit code. No confirmed active exploitation and no public exploit code confirmed at time of analysis.
RemediationAI
Vendor-released patch: node-forge 1.4.3 - upgrade the npm dependency (forge / node-forge) to 1.4.3 or later, which is shipped via https://github.com/digitalbazaar/forge/releases/tag/v1.4.3 and referenced with PR https://github.com/digitalbazaar/forge/pull/1169 and commit https://github.com/digitalbazaar/forge/commit/1d9816d333c23c523ef2bd8b24282c87db2654ef. Where an immediate upgrade is not possible, the documented workaround is to wrap every call to connection.process() in a try/catch and close the socket on the thrown error; this stops the process from terminating but leaves the client unable to complete handshakes that carry an unsupported compression method, and it must be applied consistently to all socket data handlers, including those managed implicitly by forge.tls.wrapSocket and forge.http, which otherwise call process() internally without their own guard. Note that certificate verification does not mitigate the on-path variant, because the modified compression byte is processed before the server Finished message authenticates the handshake. Full details are in the vendor advisory GHSA-w4xr-hqv8-ch44.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
node-forge is a pure-JavaScript implementation of TLS and related crypto primitives used in Node.js applications (npm package node-forge). Under RFC 5246 section 7.4.1.3 the client's ClientHello advertises the compression methods it supports - forge offers only null (0) - and the server must choose one of them in the ServerHello. In lib/tls.js, tls.parseHelloMessage() stores the received compression_method for the client side without a check (the source carries a 'TODO: handle compression methods'), and when the client subsequently handles ServerHelloDone it calls tls.createConnectionState(), which throws Error('Unsupported compression algorithm.') for anything other than null (0) or deflate (1). Because the exception is raised inside the connection state machine, it propagates out of connection.process() to the caller. This is an improper input validation problem (CWE-20) that manifests as an uncaught exception (CWE-248). The ServerHello is not authenticated until the server's Finished message, so an attacker modifying the compression byte does not break certificate chain verification - the certificate still validates, and the crash occurs before authentication completes. The fix in lib/tls.js rejects any non-null compression method at parse time and fails the handshake with a fatal illegal_parameter alert delivered through the connection's error callback rather than an exception; a deflate (1) value, also never offered, previously caused a later handshake error rather than a crash. The trigger paths and their status are well documented: direct forge.tls client use, forge.tls.wrapSocket (which calls process() from its socket data handler) and forge.http are affected, while forge.tls servers are explicitly unaffected because a server always selects no compression.
Know when Forge gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Network-reachable, no auth or user interaction; AC:H because the general on-path variant needs traffic interception; impact is crash-only, so C:N/I:N/A:H.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3, a forge.tls client accepts a ServerHello compression_method that it did not offer. When the client later handles ServerHelloDone, tls.createConnectionState() rejects the unsupported compression algorithm by throwing an Error that propagates from connection.process(). A malicious server or an on-path attacker can alter the unauthenticated ServerHello compression byte before the server Finished message and terminate a Node.js process when the application does not catch the exception. The affected client paths include direct forge.tls use, forge.tls.wrapSocket, and forge.http; forge.tls servers are not affected, and the issue has no confidentiality or integrity impact. This issue is fixed in version 1.4.3.
Blast Radius
ecosystem impact- 64,978 npm packages depend on node-forge (3,164 direct, 61,928 indirect)
Ecosystem-wide dependent count for version 1.4.3.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
An interpretation-conflict (CWE-436) vulnerability in node-forge versions 1.3.1 and earlier enables unauthenticated atta
The package node-forge before 0.10.0 is vulnerable to Prototype Pollution via the util.setPath function. Rated high seve
OID-based authorization bypass in node-forge through 1.4.0: asn1.oidToDer() fails to range-check the first two arcs of a
RSA PKCS#1 v1.5 signature forgery in node-forge through v1.4.0 enables unauthenticated network attackers to craft signat
Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Rated high severi
Regular expression denial of service in node-forge's pem.decode() allows remote, unauthenticated attackers to block the
Denial of service in node-forge (Forge) 1.3.2 through 1.4.0 lets remote, unauthenticated attackers exhaust CPU time and
Denial of service in node-forge's JavaScript TLS implementation: a connection created with forge.tls.createConnection()
Call stack exhaustion in node-forge's TLS record processing (all versions through 1.4.0) allows a remote peer to crash o
PKCS#12 MAC forgery and constant-key password-based decryption in node-forge 1.4.0 and earlier let anyone who does not k
Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Rated high severi
Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Rated high severi
EUVD-2026-122792
GHSA-w4xr-hqv8-ch44
NVD
CVE.org
EPSS
VulDB
Exploit-DB