CVE-2026-49859: CWE-693: Protection Mechanism Failure in denoland deno
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.8.1, when fetch() was called, Deno checked the destination hostname against --deny-net rules but did not re-check the IP addresses that hostname resolved to. An attacker-controlled script could use a specially crafted domain name that passes the hostname check yet resolves to a denied IP, bypassing the network restriction entirely. This vulnerability is fixed in 2.8.1.
AI Analysis
Technical Summary
In Deno before version 2.8.1, the fetch() API performed network access control by checking the destination hostname against configured --deny-net rules. However, it did not re-validate the IP addresses that the hostname resolved to, allowing an attacker to craft a domain name that passes the hostname check but resolves to an IP address that should be denied. This constitutes a protection mechanism failure (CWE-693) and improper control of resource access (CWE-918). The vulnerability is addressed in Deno 2.8.1 by ensuring IP addresses are checked against deny-net rules after DNS resolution.
Potential Impact
An attacker controlling a script running in a vulnerable Deno environment could bypass network restrictions configured via --deny-net by exploiting the hostname-to-IP resolution gap. This could lead to unauthorized network access to IP addresses that are intended to be blocked, potentially exposing sensitive internal resources or services. The CVSS score of 5.2 reflects a medium severity with limited privileges required and no user interaction needed.
Mitigation Recommendations
Upgrade Deno to version 2.8.1 or later, where this vulnerability is fixed. Since the vendor advisory confirms the issue is resolved in 2.8.1, applying this official fix fully mitigates the risk. No additional mitigations are indicated.
CVE-2026-49859: CWE-693: Protection Mechanism Failure in denoland deno
Description
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.8.1, when fetch() was called, Deno checked the destination hostname against --deny-net rules but did not re-check the IP addresses that hostname resolved to. An attacker-controlled script could use a specially crafted domain name that passes the hostname check yet resolves to a denied IP, bypassing the network restriction entirely. This vulnerability is fixed in 2.8.1.
CVSS v3.1
Score 5.2medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In Deno before version 2.8.1, the fetch() API performed network access control by checking the destination hostname against configured --deny-net rules. However, it did not re-validate the IP addresses that the hostname resolved to, allowing an attacker to craft a domain name that passes the hostname check but resolves to an IP address that should be denied. This constitutes a protection mechanism failure (CWE-693) and improper control of resource access (CWE-918). The vulnerability is addressed in Deno 2.8.1 by ensuring IP addresses are checked against deny-net rules after DNS resolution.
Potential Impact
An attacker controlling a script running in a vulnerable Deno environment could bypass network restrictions configured via --deny-net by exploiting the hostname-to-IP resolution gap. This could lead to unauthorized network access to IP addresses that are intended to be blocked, potentially exposing sensitive internal resources or services. The CVSS score of 5.2 reflects a medium severity with limited privileges required and no user interaction needed.
Mitigation Recommendations
Upgrade Deno to version 2.8.1 or later, where this vulnerability is fixed. Since the vendor advisory confirms the issue is resolved in 2.8.1, applying this official fix fully mitigates the risk. No additional mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-01T22:03:19.640Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3ac4efeed863c81e61823e
Added to database: 06/23/2026, 17:39:59 UTC
Last enriched: 06/30/2026, 23:18:07 UTC
Last updated: 08/04/2026, 12:46:13 UTC
Views: 48
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.