Skip to main content

node-forge EUVDEUVD-2026-122794

| CVE-2026-125334 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-11-10 security-advisories@github.com GHSA-j8rw-jp99-435v
5.9
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Client connects to attacker-controlled or on-path TLS endpoint
  2. Delivery
    Client enters sessionless state (close_notify, close(), or pre-handshake)
  3. Exploit
    Server injects stray ServerHello handshake record
  4. Execution
    handleHandshake dereferences null c.session.md5
  5. Impact
    Uncaught TypeError terminates Node.js process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitable only when the application uses forge.tls in the CLIENT role (server: false) AND passes network socket data to connection.process() without catching exceptions (the vulnerable pattern shown in the project README). The client must be in a no-session state when the handshake record arrives - specifically before handshake() is first called, after the application calls close(), or after the server sends a close_notify alert (any alert level), because c.reset() sets c.session to null without setting the fail flag. The malicious record is a ServerHello handshake record; a server the client connects to can send it directly, and because the post-reset connection uses no encryption, an on-path attacker can inject it even against an honest server. LIMITING FACTORS: forge.tls servers are completely unaffected (a server creates its session on ClientHello); applications that wrap process() in try/catch and close the socket, or that stop feeding data to process() after the 'closed' callback until handshake() is called again, are not impacted; impact is confined to process termination with no confidentiality or integrity consequence.

Impact

This is a moderate-severity, availability-only denial of service with no confidentiality or integrity impact (CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H = 5.9). The CVSS vector is internally consistent with the mechanism: AV:N reflects that a malicious server or on-path attacker delivers the record over the network, PR:N/UI:N reflect no authentication or user interaction, and A:H-only matches a process-termination DoS. AC:H reflects that the crash requires the client to be in a specific sessionless window (before handshake(), after close(), or after a server close_notify), which the vendor judged non-trivial to always arrange; the vendor's informational CVSS 4.0 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H, 8.2) maps that same gating to AT:P and scores higher, but the vendor states the rating follows the 3.1 score. No EPSS score was provided in the input and the CVE is not on CISA KEV, so there is no evidence of active exploitation; exploitation status is best described as no public exploitation confirmed, though a working PoC is published. The vuln.today priority is 'this_month', not act_now/emergency, consistent with a patchable, impact-limited DoS. Net: this is a real but bounded bug - worth patching on a normal cycle for anyone using forge.tls as a client, not a drop-everything emergency, and entirely irrelevant to forge.tls server deployments.

Exploit ScenarioDerived

A Node.js application uses forge.tls as a client and forwards raw socket bytes to connection.process() without wrapping it in a try/catch, as the project README example does. The attacker - either a malicious server the client connects to, or an on-path attacker injecting unencrypted records after a connection reset - sends a ServerHello handshake record while the client has no session, causing an uncaught TypeError that terminates the Node.js process and drops all its connections. A working PoC is published in the project's own test suite (tests/pocs/ghsa-j8rw-jp99-435v.js), so the trigger sequence is fully documented.

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

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

Alert me

AnalysisAIv1 – Nov 11, 2026

An uncaught TypeError in node-forge's TLS client implementation (forge.tls) lets a malicious server, or an on-path attacker when the post-reset connection is unencrypted, terminate a Node.js process by sending a ServerHello handshake record while the client holds no session - that is, before handshake() is ever called, after the application calls close(), or after a close_notify alert of any level. Only applications acting in the client role (server: false) that pass socket data straight to connection.process() without catching exceptions are affected; forge.tls servers are not, and there is no confidentiality or integrity impact, so this is availability-only (CVSS 3.1 5.9, AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H). The flaw is fixed in node-forge 1.4.3; a public PoC reference exists in the upstream test suite and advisory, though it is not verified as working exploit code, and no active exploitation (CISA KEV) is indicated.

RemediationAI

Upgrade node-forge to 1.4.3, the vendor-released fixed version (release notes: https://github.com/digitalbazaar/forge/releases/tag/v1.4.3), which causes handshake records received without a session to be ignored; the code change is in commit 2cfaeb516cb3d4aff1c0569d39394df41c5cb17c via pull request 1169. Where the upgrade cannot be applied immediately, the advisory documents two workarounds: wrap every connection.process() call in try/catch and close the socket on exception, accepting that the connection is torn down and that repeated malicious records can still force reconnections, or stop feeding socket data to process() once the closed callback has fired and until handshake() is called again, which requires application-level state tracking but preserves availability. Systems that only use forge.tls in the server role need no action for this specific issue, since servers create their session on ClientHello and do not reach the null-dereference path.

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 cryptography used widely in the npm ecosystem. In lib/tls.js, tls.handleHandshake() updates the handshake transcript digests via c.session.md5.update(bytes) before dispatching the message, and the client only creates c.session inside handshake(), while c.reset() sets session to null when the connection closes. Because closing does not set the fail flag, the client returns to expecting a ServerHello, so a subsequent Handshake record still reaches handleHandshake() and dereferences null - the classic CWE-476 null pointer dereference. The fix (pull request 1169, commit 2cfaeb) gates the dispatch on (c.session || c.entity === tls.ConnectionEnd.server), so unsolicited handshake messages on a session-less client are ignored like other unexpected records. The CVSS AC:H reflects the state-dependent preconditions (client role, no-session window, uncaught exception) rather than any timing or race condition; the trigger path is documented explicitly in the advisory and reproduced in tests/pocs/ghsa-j8rw-jp99-435v.js, and the advisory itself notes the 4.0 score of 8.2 is informational only because that scheme lacks a counterpart to AC:H.

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-delivered by malicious or on-path server, no auth or interaction (PR:N/UI:N), but requires the client's sessionless window and an uncaught exception (AC:H); availability-only (A:H, C/I:N).

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 can pass a handshake record to tls.handleHandshake() while the connection has no session, including after a close_notify alert, after the application calls close(), or before handshake() is called. The handler dereferences c.session.md5 before dispatching the message, causing a TypeError to propagate from connection.process(). A malicious server or on-path attacker can deliver the record, including after a reset when the connection uses no encryption, and terminate a Node.js process if the application does not catch the exception. forge.tls servers are not affected, and there is 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.3%
Top 79% exploitable
Prevalence
High
node-forge extremely popular npm library, but forge.tls client role rarely deployed
Threat Intel
1
1 sources
Data Quality
5 sources
Confidence: Medium

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.3%
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

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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