Intel

AIKIDO-2026-889311

node is vulnerable to Improper Certificate Validation

Improper Certificate ValidationCVE-2026-58040 Published 4 days ago

48

Medium Risk

This Affects:

OSnode
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
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.

Who does this affect?

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

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.

How to fix this

Upgrade the node library to a patch version.