CVE-2026-58040 Security feature bypass in node

Medium 6.3 Published Updated

Node.js HTTPS Agent fails to verify hostnames during TLS session reuse, allowing attackers to bypass identity verification checks.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-58040?

CVE-2026-58040 is a medium-severity vulnerability in nodejs node, published on 30 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An incomplete fix has been identified in Node.js: HTTPS Agent TLS session reuse skips hostname verification across identity policies (incomplete fix of CVE-2026-48934). This vulnerability affects Node.js **22.x**, **24.x**, and **26.x**.

Weakness: CWE-297

Which versions are affected by CVE-2026-58040?

2 open source packages ship an affected version, including node and node-min.

PackageAffectedFixed in
node BitnamiAll versions22.23.2, 24.18.1, 26.5.1
node-min BitnamiAll versions22.23.2, 24.18.1, 26.5.1

How do I fix CVE-2026-58040?

Upgrade node to a fixed version for your release line: 22.23.2, 24.18.1 or 26.5.1.

Is CVE-2026-58040 being exploited?

There is no known exploitation of CVE-2026-58040 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as ALPINE-CVE-2026-58040, AZL-94349, BELL-CVE-2026-58040, BIT-node-2026-58040, BIT-node-min-2026-58040, CLEANSTART-2026-DG35822 and 12 more.

Is CVE-2026-58040 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free