All vulnerabilities

Servers and applications

CVE-2026-49411

Deno Node TCPWrap numeric hostname aliases bypass --deny-net resolved-IP deny checks

Severity
Medium 6.5
Published
27 May 2026
Last changed
25 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.8.0
Exploit chance
0.2% in the next 30 daysHigher than 5% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper access control (CWE-284)
Attack
Needs local access · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Also known as
GHSA-v8fw-85r8-5m23
Sources
NVD, Project advisories (GitHub)

Description

Deno's network permission model is designed so that --deny-net rules apply to the resolved IP address of a destination, not just the literal string supplied by the caller. That means --deny-net=127.0.0.1 (or --deny-net=127.0.0.0/8) is expected to block any attempt to reach loopback, regardless of how the hostname is spelled.

On affected versions, the Node.js compatibility TCP path checked the permission against the original hostname string before resolution and then did not re-check after resolution. A caller could therefore pass a numeric alias of an IP address (for example the decimal integer 2130706433 or the hex form 0x7f000001, both of which resolve to 127.0.0.1) and reach the denied destination through node:net.connect or node:http.request's { host, port } options form.

The native Deno.connect(), fetch(), and URL-string variants of node:http.request("http://...") were not affected, because they either re-checked permissions after resolution or normalized the hostname through…

From denoland/deno's security advisory. Shortened; the full text is there.

Workarounds

If you cannot upgrade immediately, reduce exposure by:

  • Preferring an --allow-net allowlist over a --deny-net denylist. An allowlist denies numeric aliases by default because they don't match the listed hostnames; only the destinations you've explicitly permitted can be reached.
  • Validating untrusted host input before passing it to node:net.connect / node:http.request. Reject hostnames that are purely decimal integers (/^\d+$/) or begin with 0x, as these are the alias forms exploited by the bypass.
Workarounds as given by denoland/deno's security advisory.

Affected software

SoftwareAffected versions
DenoServers and applications · cpe:a:deno:deno
  • From 2.7.14 before 2.8.0
DenoServers and applications · github:denoland/deno
  • Version 2.7.14

About Deno

secure runtime for JavaScript and TypeScript based on the V8 JavaScript engine and the Rust programming language

From Wikidata, CC0 1.0.
Monthly active users
400k+Deno
Developers who used it in the past year
4%Stack Overflow Developer Survey 2025, 2025
Weekly downloads (npm)
530,707npm, 15 Nov 2026
Downloads in the last 90 days (crates.io)
2,447crates.io, 15 Nov 2026
Total downloads (crates.io)
634,116crates.io, 15 Nov 2026
Docker Hub pulls
9,367,609Docker Hub, 15 Nov 2026
GitHub stars
108,888GitHub, 15 Nov 2026
Forks
7,444GitHub, 15 Nov 2026
Latest release
v2.9.8GitHub, 15 Nov 2026
Released
21 Oct 2026GitHub
Developer
Ryan DahlWikidata
License
MIT LicenseWikidata
Written in
Rust, TypeScript, JavaScriptWikidata
First released
13 May 2018Wikidata
First published on GitHub
15 May 2018GitHub

Release lines

ReleaseLatestSecurity fixes
2.92.9.8Yes
2.82.8.3Ended 25 Jun 2026
2.72.7.14Ended 22 May 2026
2.62.6.10Ended 25 Feb 2026
2.5 (LTS)LTS2.5.7Ended 30 Apr 2026
2.42.4.5Ended 10 Sept 2025

From endoflife.date.

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-49411
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-49411
  • GitHub Advisory Database https://github.com/advisories/GHSA-v8fw-85r8-5m23
  • github.com https://github.com/denoland/deno/security/advisories/GHSA-v8fw-85r8-5m23