Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceFindingsNMN-2026-0041

Forge: TLS client crash when the server sends no certificate

CandidateMachine- or researcher-generated; not independently verified.

In short

What to know.

Package
node-forge npmnode-forge: before 1.4.1
What to do
Upgrade node-forge to 1.4.1 or later.
Severity
ModerateRated by the source advisory.
Confidence
HighThe affected range comes from the advisory; no system that uses the component has been assessed.

Verification

Where it stands.

  1. Candidate
  2. In review
  3. Reproduced
  4. Confirmed
  5. Resolved
  6. Disputed
  7. Withdrawn
Candidate Machine- or researcher-generated; not independently verified.

What each state means, and how a record moves between them.

6 listed

Sources

  1. OSV record GHSA-525v-9gp9-w22hosv.devRetrieved 3 December 2026
  2. web reference for GHSA-525v-9gp9-w22hgithub.comRetrieved 3 December 2026
  3. advisory reference for GHSA-525v-9gp9-w22hnvd.nist.govRetrieved 3 December 2026
  4. web reference for GHSA-525v-9gp9-w22hgithub.comRetrieved 3 December 2026
  5. package reference for GHSA-525v-9gp9-w22hgithub.comRetrieved 3 December 2026
  6. web reference for GHSA-525v-9gp9-w22hgithub.comRetrieved 3 December 2026

Full record

Finding
NMN-2026-0041
Category
vulnerability
Component
node-forge (npm)node-forge: before 1.4.1
Severity
Moderate. Rated by the source advisory.Severity as labelled by the source advisory GHSA-525v-9gp9-w22h. CVSS as given: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H. Noumen has not assessed it.
Confidence
High.The affected range comes from the advisory; no system that uses the component has been assessed.
State
Candidate. Machine- or researcher-generated; not independently verified.
Disclosure
Public
Mitigation
Upgrade node-forge to 1.4.1 or later.
Discovery method
imported from a public advisory by the Advisory Monitor (1.0.0)Machine-generated by the agent advisory-monitor@1.0.0.
Reproduction
No reproduction steps recorded.
Affected systems
None listed. A link to a system needs its own evidence.
Attribution
Researcher: advisory-monitor@1.0.0 (agent, machine-generated)Validators: None yet
Assigned reviewer
Nobody yet
Dates
Created 3 December 2026, 16:48 UTCUpdated 3 December 2026, 16:48 UTC
Summary, as published by the source advisory
As published by the source advisory
### Summary The forge TLS client's check for a missing server certificate read the wrong property and never ran. A malicious TLS server, or an on-path attacker who removes the server's Certificate message, can make `connection.process()` throw a `TypeError`, which crashes applications that use the forge TLS client. Fixed in node-forge 1.4.1. ### Details After ServerHelloDone, `tls.handleServerHelloDone()` in `lib/tls.js` is meant to reject a server that sent no certificate with a fatal `insufficient_security` alert, after consulting the application's `verify` callback. The check tested `c.serverCertificate`, which is never set (the certificate is stored as `c.session.serverCertificate`), so it never ran. The client state machine allows ServerHelloDone directly after ServerHello, so the handshake continued to `tls.createClientKeyExchange()`, which reads `c.session.serverCertificate.publicKey` and throws a `TypeError` on the null certificate. The exception propagates out of `connection.process()` without calling the `verify` or `error` callbacks. There is no authentication bypass: without a server certificate the client cannot build its RSA key exchange, so the handshake cannot complete. The fix reads `c.session.serverCertificate` and always fails the handshake in that case, still calling `verify` so the application can customize the alert. Failing even when `verify` returns `true` is needed because the key exchange requires the certificate. #### Patches Fixed in node-forge 1.4.1. The TLS client fails the handshake with an `insufficient_security` alert when the server sends no certificate. #### Workarounds Catch exceptions thrown by `connection.process()` in the code that feeds it network data, and close the connection when one occurs. #### Credits Reported by @arpitjain099. ### Proof of concept Connect a forge TLS client (`forge.tls.createConnection({server: false, ...})`) to a server whose first flight contains ServerHello and ServerHelloDone but no Certificate message. For example, run a forge TLS server and remove the Certificate handshake message (type 11) from its first flight before passing it to the client's `process()`. On 1.4.0 the client's `process()` throws "TypeError: Cannot read properties of null (reading 'publicKey')", and the `verify` and `error` callbacks are not called. On 1.4.1 the client calls `verify` with `insufficient_security` and no certificates, calls `error` with "No server certificate provided. Not enough security.", sends a fatal alert and closes the connection. Regression tests are in tests/unit/tls.js ("missing server certificate"). ### Impact Applications that use the forge TLS client (`forge.tls.createConnection` with `server: false`) are affected. A malicious server the application connects to, or an on-path attacker who can modify the unauthenticated handshake, can make the client throw from `connection.process()`. Since `process()` is normally called from a socket data handler, the uncaught exception terminates a Node.js process. There is no confidentiality or integrity impact. Applications using Node.js's own TLS implementation are not affected.

1 event, oldest first

History

History verified: 1 eventLatest hashe44d2a7d1619e44d2a7d16196abd31688e9eb9482af0d0b94751f31e9a170a8921801525fc60

  1. Record createdMachine-generated

    By advisory-monitor@1.0.0 (agent, machine-generated)

    Reason: Imported from public advisory GHSA-525v-9gp9-w22h.

    Entered the record in the state Candidate.

    Event 1 hashe44d2a7d1619e44d2a7d16196abd31688e9eb9482af0d0b94751f31e9a170a8921801525fc60
About this record

Severity and confidence are rated separately, each with its own reason.

History events are never edited or deleted. Each stores the hash of the one before, so a later change breaks the chain.

Corrections keep the value before and after.