Skip to main content

Deno Runtime EUVDEUVD-2026-38542

| CVE-2026-49860 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-06-16 https://github.com/denoland/deno GHSA-83pc-3rw9-qpwj
5.2
CVSS 3.1 · Vendor: https://github.com/denoland/deno
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Supply chain dependency injected
  2. Delivery
    User runs script with --deny-net
  3. Exploit
    Script opens WebSocket to attacker-owned domain
  4. Install
    Hostname passes --deny-net blocklist check
  5. C2
    DNS resolves hostname to blocked IP
  6. Execute
    Deno connects without re-validating IP
  7. Impact
    Restricted internal service reached

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Three conditions must all be met: (1) The attacker controls JavaScript code executing within a Deno process - either authored directly or injected via a supply chain compromise of a loaded dependency; (2) the Deno invocation includes both --allow-net (or equivalent network permission) and --deny-net targeting hosts the operator intends to block (e.g., --deny-net=localhost, internal IP ranges, or cloud metadata IPs); (3) the attacker-controlled code initiates a WebSocket connection (new WebSocket(...)) to a domain the attacker controls whose DNS resolves to a blocked IP. Deno.connect and fetch() are explicitly NOT affected by this bypass - only the WebSocket API path lacks the post-resolution IP check. Users who do not rely on --deny-net for security enforcement are entirely unaffected regardless of their network permissions. The key limiting factor is that the attacker must already have achieved code execution within the Deno sandbox - external, unauthenticated exploitation is not possible.

Impact

The CVSS 5.2 Medium rating with vector AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N is appropriate and coherent: the attacker must already be executing code inside the Deno process (AV:L/PR:L), but once inside the sandbox the attack requires no complexity and achieves a scope change (S:C) by crossing the network isolation boundary. No EPSS score was provided in the input, so exploitation probability cannot be quantified. There is no CISA KEV listing and no public POC has been identified. Despite the moderate CVSS, the real-world supply chain risk is elevated: a single compromised JSR or npm dependency loaded by deno run could silently reach cloud IMDS endpoints, internal APIs, or localhost services that operators assumed were protected. SSVC framing: exploitation status 'none confirmed', automatable 'yes' given an attacker-controlled dependency, technical impact 'partial'. The key risk limiter is the requirement that attacker-controlled JavaScript must already be executing within the Deno runtime - this is not a remotely triggerable issue from outside the process.

Exploit ScenarioDerived

A compromised or malicious package in a Deno project's dependency tree (supply chain attack) registers an attacker-controlled domain (e.g., bypass.attacker.com) whose DNS record resolves to 127.0.0.1 or an internal RFC-1918 address. When deno run --allow-net --deny-net=localhost loads the malicious package, the package opens new WebSocket('ws://bypass.attacker.com'), which passes the hostname-level --deny-net check; Deno then resolves the hostname to 127.0.0.1 and establishes the TCP connection without a second permission check, reaching a local HTTP service (e.g., an unauthenticated admin API or cloud metadata endpoint) the operator intended to block. No public POC has been identified, but the attack technique is well-understood and requires only DNS control and the ability to run JavaScript within Deno.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 16, 2026

WebSocket connections in Deno 2.8.0 and earlier silently bypass --deny-net network sandbox rules by exploiting a missing post-DNS-resolution IP check - the runtime validates the destination hostname but never validates the IP address that hostname resolves to, enabling a classic DNS-rebinding-style SSRF (CWE-918) within the permission system. Any script running under deno run with --deny-net restrictions can weaponize an attacker-controlled domain to reach blocked hosts such as localhost or cloud metadata endpoints (e.g., 169.254.169.254). No public exploit has been identified at time of analysis, and the issue is specific to the WebSocket API; Deno.connect and fetch() are addressed in a companion advisory.

RemediationAI

Upgrade Deno to version 2.8.1 or later, which is the vendor-released patch confirmed in GHSA-83pc-3rw9-qpwj (https://github.com/denoland/deno/security/advisories/GHSA-83pc-3rw9-qpwj). The vendor explicitly states no configuration-level workaround exists. As a compensating control where an immediate upgrade is not possible, remove --allow-net from any invocation of untrusted code that also relies on --deny-net for security - this eliminates the attack surface entirely by denying all network access, though it will break any functionality that requires legitimate outbound connectivity. A second compensating control is to enforce network isolation at the OS layer (e.g., Linux network namespaces, container egress firewall rules, or iptables rules blocking internal CIDRs) rather than relying solely on Deno's runtime permission system. OS-level controls are not bypassable by script-layer DNS tricks and provide a defense-in-depth layer regardless of patch status.

Affected VersionsENISA

deno < 2.8.1

Affected Packages

cargo deno fix: 2.8.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in cargo

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Deno (pkg:rust/deno) implements a capability-based permission system where --deny-net blocklists specific hostnames or IP ranges to restrict outbound network access from untrusted scripts. For WebSocket connections, the enforcement logic performed a single hostname-level match against the blocklist prior to DNS resolution. After DNS resolution, the runtime did not re-validate the resulting IP addresses against the same deny rules - the TCP connection was established directly to the resolved IP without a second permission check. This gap is classified under CWE-918 (Server-Side Request Forgery), because a malicious script can cause the runtime to make network connections to destinations the user explicitly intended to forbid. The root cause is architecturally equivalent to a DNS rebinding attack: the checked identity (hostname) and the connected identity (IP) diverge, and only the former is verified. The issue is isolated to the WebSocket code path; Deno.connect and fetch() have separate (and separately patched) IP validation logic.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/denoland/deno) PRIMARY 5.2 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.2 MEDIUM

Attacker code must already execute inside the Deno sandbox (AV:L/PR:L); sandbox escape to restricted network justifies S:C; no availability impact applies.

3.1 AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
SUSE MEDIUM

Primary rating from Vendor (https://github.com/denoland/deno).

CVSS VectorVendor: https://github.com/denoland/deno

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

When a WebSocket connection was opened, 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.

Impact

Code running under --deny-net could connect to hosts that the user intended to block. In practice this means network isolation rules - for example, blocking access to localhost or internal services - could be silently circumvented by a malicious or compromised dependency.

Deno.connect and fetch() were not affected by this specific issue (a companion advisory covers fetch()).

Who is affected

Users who:

  • run untrusted or third-party code with deno run, and
  • rely on --deny-net to restrict which hosts that code can reach.

If you do not use --deny-net, or if you only run fully trusted code, you are not affected.

Workaround

No workaround is available short of upgrading. If upgrading immediately is not possible, avoid granting --allow-net to untrusted code that also has --deny-net restrictions you depend on for security.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy