Denial of Network Restrictions in Deno Runtime
CVE-2026-49860
5.2MEDIUM
What is CVE-2026-49860?
In versions before 2.8.1 of Deno, the JavaScript, TypeScript, and WebAssembly runtime, a security flaw was identified regarding the handling of WebSocket connections. Specifically, when a WebSocket connection was initiated, Deno performed a hostname check against its --deny-net rules. However, it failed to verify the actual IP addresses that the hostname resolved to. This oversight enabled an attacker to exploit the vulnerability by utilizing a crafted domain that passed the initial hostname check while linking to a prohibited IP address, thus circumventing the intended network restrictions. This issue has been mitigated in the subsequent release, version 2.8.1.
Affected Version(s)
deno < 2.8.1
