Improper Certificate Validation Affecting nodejs package, versions [22.20.0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-NODEJS-17674619
  • published29 Jun 2026
  • disclosed26 Jun 2026
  • credit3d7omb

Introduced: 26 Jun 2026

NewCVE-2026-48934  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Improper Certificate Validation in TLSSocket.prototype.setSession (lib/internal/tls/wrap.js), which reuses a cached TLS session for a connection with a different servername without re-verifying the server's certificate against the new host. An attacker can cause a client to accept a TLS connection to a server that does not hold a valid certificate for the requested host, bypassing certificate validation and establishing unauthorized connections, by inducing it to resume a session that was authenticated for a different servername. Exploitation affects clients that reuse TLS sessions across connections and requires the attacker to influence the servername bound to a resumed session, so that a session authenticated for one host is accepted for another.

CVSS Base Scores

version 4.0
version 3.1