CVE-2024-27935 — Vulnerability in deno — CVE Details
Deno's Node.js Compatibility Runtime has Cross-Session Data Contamination
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.82%). Schedule for your next planned update.
Does your project use an affected Deno version?
Paste your Cargo.lock to check it for CVE-2024-27935 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
A vulnerability in Deno's Node.js compatibility runtime allows for cross-session data contamination during simultaneous asynchronous reads from Node.js streams sourced from sockets or files. The issue arises from the re-use of a global buffer (BUF) in stream_wrap.ts used as a performance optimization to limit allocations during these asynchronous read operations. This can lead to data intended for one session being received by another session, potentially resulting in data corruption and unexpected behavior.
Details
A bug in Deno's Node.js compatibility runtime results in data cross-reception during simultaneous asynchronous reads from Node.js network streams. When multiple independent network socket connections are involved, this vulnerability can be triggered. For instance, two separate server sockets that receive data from their respective client sockets and then echo the received data back to the client using Node.js streams may experience an issue where data from one socket may appear on another socket. Due to the improper isolation of the global buffer (BUF), data sent by one socket can end up being incorrectly received by another socket. Consequently, data intended for one session may be exposed to another session, potentially leading to data corruption and unexpected behavior.
This buffer was introduced as a performance optimization to avoid excessive allocations during network read operations.
In cases where the net.Stream is connected to a remote server such as a database or key/value store such as Redis, this may result in a packet received on one connection being presented to another, causing data cross-contamination between multiple users and potentially leaking sensitive information.
It is important to note that this vulnerability does not affect Deno network streams created with the Deno.listen and Deno.connect APIs.
The impact of this issue may extend beyond node.js network streams, however, and may also affect asynchronous reads from non-network node.js Stream such as those created from files.
PoC
https://github.com/denoland/deno/issues/20188
Impact
This affects all users of Deno that use the node.js compatibility layer for network communication or other streams, including packages that may require node.js libraries indirectly.
Advisory Timeline
- First published March 5, 2024 (996 days ago).
- Last revised September 10, 2026 — 918 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p deno --precise 1.36.3
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| deno crates.io · Affected: All versions | 1.36.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-488
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.2 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L
References
- https://github.com/denoland/deno/security/advisories/GHSA-wrqv-pf6j-mqjpWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-27935ADVISORY
- https://github.com/denoland/deno/issues/20188WEB
- https://github.com/denoland/deno/commit/3e9fb8aafd9834ebacd27734cea4310caaf794c6WEB
- https://github.com/denoland/denoPACKAGE
Frequently Asked Questions
- What is CVE-2024-27935?
- Deno's Node.js Compatibility Runtime has Cross-Session Data Contamination. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.2/10).
- How do I check if my project is affected by CVE-2024-27935?
- CVE-2024-27935 affects deno. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-27935 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 54.5% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-22863CRITICAL
Deno node:crypto doesn't finalize cipher
- CVE-2024-34346HIGH
Deno permission escalation vulnerability via open of privileged files with missing `--deny` flag
- CVE-2025-24015HIGH
Deno's AES GCM authentication tags are not verified
- CVE-2024-27934HIGH
*const c_void / ExternalPointer unsoundness leading to use-after-free
- CVE-2026-32260HIGH
Deno vulnerable to command Injection via incomplete shell metacharacter blocklist in node:child_process
- CVE-2021-41641HIGH
Link Following in Deno
- CVE-2024-27933HIGH
Deno arbitrary file descriptor close via `op_node_ipc_pipe()` leading to permission prompt bypass
- CVE-2026-49402HIGH
Deno: Command Injection via spawnSync & spawn on Windows