Skip to main content

node-forge EUVDEUVD-2026-122792

| CVE-2026-125332 MEDIUM
Improper Input Validation (CWE-20)
2026-11-10 security-advisories@github.com GHSA-w4xr-hqv8-ch44
5.9
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain on-path position or host malicious server
  2. Delivery
    Alter ServerHello compression byte (e.g. 0xff)
  3. Exploit
    Send ServerHello, Certificate, ServerHelloDone
  4. Execution
    Client throws at createConnectionState()
  5. Impact
    Uncaught 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

forge < 1.4.3

Affected Packages

npm node-forge fix: 1.4.3
euvd forge fix: 1.4.3

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

Vendor (github) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 10, 2026 - 20:20 EUVD
CVE Published
Nov 10, 2026 - 19:21 cve.org
MEDIUM 5.9

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

EPSS Score
0.4%
Top 62% exploitable
Prevalence
High
very popular npm crypto/TLS library, though affected forge.tls client path is narrower
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Forge

View all
CVE-2025-12816 HIGH POC
8.6 Nov 25

An interpretation-conflict (CWE-436) vulnerability in node-forge versions 1.3.1 and earlier enables unauthenticated atta

CVE-2020-7720 HIGH POC
7.3 Sep 01

The package node-forge before 0.10.0 is vulnerable to Prototype Pollution via the util.setPath function. Rated high seve

CVE-2026-118775 MEDIUM POC
5.3 Oct 29

OID-based authorization bypass in node-forge through 1.4.0: asn1.oidToDer() fails to range-check the first two arcs of a

CVE-2026-85393 HIGH
8.7 Sep 03

RSA PKCS#1 v1.5 signature forgery in node-forge through v1.4.0 enables unauthenticated network attackers to craft signat

CVE-2025-66031 HIGH
8.7 Nov 26

Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Rated high severi

CVE-2026-118779 HIGH
7.5 Oct 29

Regular expression denial of service in node-forge's pem.decode() allows remote, unauthenticated attackers to block the

CVE-2026-119191 HIGH
7.5 Oct 29

Denial of service in node-forge (Forge) 1.3.2 through 1.4.0 lets remote, unauthenticated attackers exhaust CPU time and

CVE-2026-119188 HIGH
7.5 Oct 29

Denial of service in node-forge's JavaScript TLS implementation: a connection created with forge.tls.createConnection()

CVE-2026-119187 HIGH
7.5 Oct 29

Call stack exhaustion in node-forge's TLS record processing (all versions through 1.4.0) allows a remote peer to crash o

CVE-2026-118782 HIGH
7.5 Oct 29

PKCS#12 MAC forgery and constant-key password-based decryption in node-forge 1.4.0 and earlier let anyone who does not k

CVE-2022-24772 HIGH
7.5 Mar 18

Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Rated high severi

CVE-2022-24771 HIGH
7.5 Mar 18

Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Rated high severi

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy