Intel

AIKIDO-2026-889311

node is vulnerable to Improper Certificate Validation

CVE-2026-58040Published Jul 30, 2026
July 30, 2026

48

CVE Score

Medium

Improper Certificate Validation

Are you affected? Scan for Free

TL;DR

An incomplete fix for CVE-2026-48934 left HTTPS Agent TLS session and connection reuse able to skip per-request hostname verification. When a request supplies a custom checkServerIdentity callback that was not also configured on the Agent itself, the Agent can still reuse a prior TLS session or keep-alive socket keyed only by host, so the custom identity check is never applied to the reused connection. An attacker who can redirect traffic after a session was established under a different identity policy may therefore bypass intended certificate hostname checks. The fix excludes per-request checkServerIdentity from session and connection reuse unless that option was set when constructing the Agent.

How do I fix this?

Upgrade the node library to a patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

node

Versions

0.0.1 - 22.23.1

Fixed in 22.23.2

23.0.0 - 24.18.0

Fixed in 24.18.1

25.0.0 - 26.5.0

Fixed in 26.5.1

Background info

node is vulnerable to Improper Certificate Validation in versions 25.0.0 - 26.5.0, 23.0.0 - 24.18.0 and 0.0.1 - 22.23.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea