CVE-2026-49411: Deno Node TCPWrap Numeric Hostname Aliases Vulnerability
MODERATECVE-2026-49411 is a MODERATE (CVSS 6.5) node tcpwrap numeric hostname aliases vulnerability (CWE-284: Improper Access Control) affecting Deno libraries in the crates.io ecosystem. The issue involves node tcpwrap numeric hostname aliases bypass --deny-net resolved-ip deny checks. Remediation is available by upgrading affected packages to version 2.8.0.
CVE-2026-49411 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N).
How to Fix CVE-2026-49411
To remediate this vulnerability, upgrade all affected Deno dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade deno to 2.8.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for deno
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-49411, inspect your project dependencies for Deno:
inspect dependencies for deno
Analyze the terminal output to locate any version of Deno in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Deno, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-49411 Affected Deno Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
deno
|
crates.io |
< 2.8.0
|
2.8.0
|
References
Frequently Asked Questions
What is CVE-2026-49411?
Which Deno versions are affected?
What version fixes CVE-2026-49411?
Is deno affected?
What is the CVSS score of CVE-2026-49411?
What CWE is associated with CVE-2026-49411?
How can I check crates.io dependencies for CVE-2026-49411?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v8fw-85r8-5m23",
"modified" : "2026-07-20T21:01:40Z",
"published" : "2026-06-16T19:09:46Z",
"aliases" : [ "CVE-2026-49411" ],
"summary" : "Deno: Node TCPWrap numeric hostname aliases bypass --deny-net resolved-IP deny checks",
"details" : "## Summary\n\nDeno'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.\n\nOn 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.\n\nThe 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 the URL parser before checking.\n\n## Proof of concept\n\nRun on Deno `2.7.14`, with a local TCP listener on `127.0.0.1:<PORT>`:\n\n```js\nimport net from \"node:net\";\n\n// --allow-net + --deny-net=127.0.0.0/8\n// (or even --deny-net=127.0.0.1:<PORT>)\nnet.connect({ host: \"2130706433\", port: PORT }); // CONNECTED ❌\nnet.connect({ host: \"0x7f000001\", port: PORT }); // CONNECTED ❌\nnet.connect({ host: \"127.0.0.1\", port: PORT }); // denied ✅\n```\n\nThe same primitive reached the loopback HTTP listener through `node:http` when the destination was passed as options rather than as a URL string:\n\n```js\nimport http from \"node:http\";\n\n// options-form host — bypasses the deny rule on affected versions\nhttp.request({ hostname: \"2130706433\", port: PORT, path: \"/\" }).end();\n\n// URL-string form — correctly denied (URL parser normalizes the host)\nhttp.request(`http://2130706433:${PORT}/`).end();\n```\n\nThe server-side log showed the bypassed requests arriving from `127.0.0.1` with the numeric alias preserved in the `Host` header.\n\n## Impact\n\nA program that intentionally allows broad outbound network access but uses `--deny-net` to carve out protected destinations, typically loopback, private/internal ranges, or cloud-instance metadata IPs, could be made to reach those denied destinations from less-trusted code (a dependency, plugin, or attacker-controlled input) that funnels through `node:net.connect({ host })` or `node:http.request({ hostname })`.\n\nThe CVSS vector reflects this as a local-attack-vector, permissions-required confidentiality impact: the attacker needs to be able to run code inside the Deno process, and the demonstrated primitive is \"reach an explicitly denied IP.\" It does not by itself exfiltrate data or execute code; the further impact depends on what the now-reachable endpoint exposes.\n\nThe confirmed scope is **IPv4 numeric hostname aliases** reaching a denied resolved IP through the Node TCPWrap / options-host path. URL strings, `node:http2`, `undici`, and IPv6 numeric/mapped-address variants were not exhaustively tested by the reporter.\n\n## Not affected\n\n- Programs that do not use `--deny-net` at all (the bug is specifically about deny rules being bypassed; allow rules were always checked against the original string).\n- Native Deno networking APIs (`Deno.connect`, `Deno.connectTls`, `fetch`, ...), these already re-checked permissions after resolution as of PR #33203.\n- URL-string callers such as `fetch(\"http://2130706433/\")` or `node:http.request(\"http://2130706433/\")`, the URL parser normalized the hostname to its dotted-quad form before the permission check ran.\n- Calls that do not provide `host`/`hostname` (e.g. connecting by IP literal or by a name that the deny rule already matches verbatim).\n\n## Workarounds\n\nIf you cannot upgrade immediately, reduce exposure by:\n\n- **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.\n- **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.\n- **Avoiding the Node options-host path for sensitive calls** in favour of URL-string forms, which are normalized by the URL parser before the permission check.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "deno"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.8.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.7.14"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/security/advisories/GHSA-v8fw-85r8-5m23"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-49411"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/denoland/deno"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-16T19:09:46Z",
"nvd_published_at" : "2026-06-23T18:18:03Z"
}
}