Skip to content

CVE-2024-27935 Deno's Node.js Compatibility Runtime has Cross-Session Data Contamination

HighCVSS 8.3 EPSS 0.72%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.35.1 and prior to version 1.36.3, 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. 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. Version 1.36.3 contains a patch for this issue.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
crates.io deno(crates.io) >= 1.35.1, < 1.36.3 1.36.3 Fixed
deno >= 1.35.1, < 1.36.3 1.36.3 Fixed
denoland deno = >= 1.35.1, < 1.36.3; >= 1.35.1, <= 1.36.3 after 1.36.3 Fixed

Affected products

ProductAffected versionsFixed in
crates.io deno(crates.io) >= 1.35.1, < 1.36.3 1.36.3
denoland deno = >= 1.35.1, < 1.36.3 No fix listed
denoland deno >= 1.35.1, <= 1.36.3 No fix listed
deno >= 1.35.1, < 1.36.3 1.36.3

References