Skip to content
OpenAdvisories
Medium · 5.2 CVE-2026-49860 EUVD-2026-38542GHSA-83pc-3rw9-qpwj

Deno: WebSocket API sandbox bypass via missing post-DNS check

Published Jun 23, 2026 · Updated Jun 23, 2026 · Assigned by GitHub_M

Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.8.1, 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. This vulnerability is fixed in 2.8.1.

Affected products

VendorProductAffectedFixed
denoland deno < 2.8.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io deno < 2.8.1 2.8.1 GHSA-83pc-3rw9-qpwj

References