Skip to main content

Deno EUVDEUVD-2026-38549

| CVE-2026-55517 MEDIUM
Uncaught Exception (CWE-248)
2026-06-17 https://github.com/denoland/deno GHSA-x2qc-cmh9-f4hf
4.3
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. Access
    Attacker controls or intercepts WebSocket server
  2. Delivery
    Deno client initiates outbound WebSocket connection
  3. Exploit
    Server returns 101 response with non-ASCII bytes in Sec-WebSocket-Protocol or Sec-WebSocket-Extensions
  4. Execution
    HeaderValue::to_str() returns unhandled error
  5. Persist
    Rust panic aborts Deno process
  6. Impact
    Target application crashes (DoS)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

Exploitation requires that the vulnerable Deno application (version <= 2.7.4) initiates an outbound WebSocket connection - the attack cannot be triggered by passive network presence alone; the client must connect first. The attacker must satisfy one of two conditions: either control the WebSocket server endpoint the Deno application connects to (e.g., a malicious or compromised third-party service), or occupy a man-in-the-middle network position on an unencrypted ws:// (non-TLS) connection and inject malformed header bytes into the 101 response. Applications using wss:// (TLS) are not vulnerable to the MitM vector because the handshake is encrypted and authenticated; however, they remain vulnerable if the origin server itself returns malicious headers. No authentication to the victim system is required on the attacker's side. The key limiting factors are: (1) the Deno process must initiate the connection - the server cannot push the attack unprompted; (2) the attack path is eliminated for wss:// connections where the server is not itself compromised; and (3) impact is confined to crashing only the Deno process that opened the connection, not the host OS or other processes.

Impact

The vendor-assigned CVSS 3.1 score of 4.3 (Medium) with vector AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L is well-calibrated: the attack is network-reachable, requires no credentials on the victim system, and has low complexity, but the victim process must initiate the connection (UI:R) and impact is limited to process termination (A:L) with no confidentiality or integrity exposure. Real-world risk depends heavily on deployment pattern: Deno applications that connect to user-supplied, third-party, or dynamically-resolved WebSocket endpoints - financial data feeds, IoT brokers, webhook relays - carry meaningfully higher exposure than those connecting exclusively to first-party servers. The MitM attack path applies only to plaintext ws:// connections, not wss://. EPSS data was not provided, and this vulnerability does not appear in the CISA KEV catalog, indicating no confirmed widespread or opportunistic exploitation. No public PoC code has been identified. The source metadata tags this vulnerability as 'Information Disclosure,' which directly contradicts the advisory's explicit statement that there is no information disclosure - the advisory text is authoritative and the tag should be treated as erroneous. Overall this is a moderate-severity, targeted-availability issue warranting prompt patching for internet-facing Deno applications with dynamic WebSocket usage.

Exploit ScenarioDerived

An attacker who operates a WebSocket server - or who can intercept a plaintext ws:// connection through ARP spoofing or DNS manipulation - responds to the Deno client's upgrade request with a crafted 101 Switching Protocols response that includes a Sec-WebSocket-Protocol header value containing bytes such as 0xFF 0xFE. The Deno runtime's HeaderValue::to_str() call fails on this input, the unhandled error causes a Rust panic, and the entire Deno process terminates instantly. No public PoC code has been identified, but the attack requires only standard HTTP header crafting and produces a deterministic crash against any unpatched Deno client that connects.

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

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

Alert me

AnalysisAIv1 – Jun 18, 2026

Process-terminating denial of service in Deno's WebSocket client (versions <= 2.7.4) allows any server - or a network man-in-the-middle on an unencrypted ws:// connection - to crash a Deno application by returning non-visible-ASCII bytes (0x80-0xFF) in the Sec-WebSocket-Protocol or Sec-WebSocket-Extensions handshake response headers. The root cause is an unhandled Rust panic in the HTTP upgrade path: HeaderValue::to_str() returns an error for out-of-range bytes, and that error path was not caught, causing the entire Deno process to abort. No public exploit has been identified at time of analysis and this is not listed in the CISA KEV catalog; impact is strictly availability - the advisory explicitly states there is no information disclosure or memory-safety consequence.

RemediationAI

Upgrade to Deno 2.7.5 or later; this is the vendor-released patch confirmed by the GitHub advisory GHSA-x2qc-cmh9-f4hf. In 2.7.5, the WebSocket header parsing was hardened with graceful fallbacks: Sec-WebSocket-Protocol and Sec-WebSocket-Extensions values containing non-ASCII bytes are now silently skipped rather than causing a process-aborting panic, and a regression test covering a server that returns non-ASCII bytes in Sec-WebSocket-Protocol was added. If an immediate upgrade is not feasible, apply two compensating controls: (1) restrict WebSocket connections exclusively to a known-good allowlist of trusted endpoints, which eliminates the attacker-controlled-server path but does not protect against a compromised allowlisted server; and (2) enforce wss:// (TLS) for all WebSocket connections, which removes the network man-in-the-middle attack vector by encrypting the handshake, though it does not protect against a malicious origin server. Neither workaround addresses a scenario where a previously trusted endpoint is later compromised, so patching to 2.7.5 remains the definitive fix.

Affected VersionsENISA

deno < 2.7.5

Affected Packages

cargo deno fix: 2.7.5

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 is a JavaScript and TypeScript runtime built on V8 and Rust. The vulnerability is located in its WebSocket client handshake implementation, specifically in how HTTP 101 Switching Protocols upgrade response headers are processed. The Rust http crate's HeaderValue::to_str() method is defined to return Err for any byte value outside the visible ASCII range (0x20-0x7E); the Deno code consumed this Result without handling the error case, causing an unrecoverable panic (CWE-248: Uncaught Exception in the Rust sense - an unwrap or expect on a failed conversion) that propagates up to abort the entire process. The CPE identifier pkg:rust/deno confirms the Rust-level layer as the locus of the defect. The affected headers - Sec-WebSocket-Protocol and Sec-WebSocket-Extensions - are part of the RFC 6455 WebSocket opening handshake and are fully attacker-controlled when the attacker owns or can intercept the server side of the connection.

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 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
vuln.today AI 4.3 MEDIUM

Network-delivered crash requiring victim to initiate the connection (UI:R); attacker needs no victim-system privileges (PR:N); only the connecting Deno process terminates (A:L), no data exposed.

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

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

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

DescriptionCVE.org

Summary

A Deno program that opens a client WebSocket connection could be crashed by the remote server. While handling the WebSocket handshake response, Deno parsed the Sec-WebSocket-Protocol and Sec-WebSocket-Extensions response headers in a way that assumed their bytes were always printable ASCII. A response header containing non-visible-ASCII bytes (0x80-0xFF) caused a panic that aborted the entire Deno process.

Details

When establishing a client WebSocket connection, Deno read the Sec-WebSocket-Protocol and Sec-WebSocket-Extensions headers from the server's 101 Switching Protocols response and converted them to strings without handling the failure case. HeaderValue::to_str() returns an error for any value containing bytes outside the visible-ASCII range, so a header carrying such bytes triggered an unrecoverable error during conversion.

Because the client initiates the outbound connection, the handshake response is fully controlled by the server. A server that returns bytes such as 0xFF 0xFE in either header could therefore crash any client that connected to it.

This is purely an availability issue. There is no information disclosure and no memory-safety impact; the only effect is termination of the current process.

Impact

Remote denial of service. Any Deno application that establishes WebSocket connections to untrusted or potentially-compromised endpoints could be terminated by the remote peer. Exploitation requires the victim application to initiate the outbound WebSocket connection. An attacker who controls the WebSocket endpoint, or who can man-in-the-middle a plaintext ws:// connection, could trigger the crash. The effect is confined to crashing the process that opened the connection.

Patch

The issue is fixed in Deno 2.7.5. The header values are now parsed with graceful fallbacks: values that cannot be represented as ASCII strings are skipped instead of aborting the process. A regression test covers a server that returns non-ASCII bytes in Sec-WebSocket-Protocol.

Users should upgrade to Deno 2.7.5 or later.

Workarounds

Until you can upgrade, only connect to trusted WebSocket endpoints and prefer wss:// (TLS) over ws://, which prevents a network man-in-the-middle from injecting malicious header bytes into the handshake response.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% 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.2%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate

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