{"id":"CVE-2024-27935","published":"2024-03-06T21:02:14Z","modified":"2024-08-02T20:12:42Z","title":"Deno's Node.js Compatibility Runtime has Cross-Session Data Contamination","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"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.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00824,"percentile":0.54474,"provenance":"source"},"cwes":[{"id":"CWE-488","name":"Exposure of Data Element to Wrong Session"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-wrqv-pf6j-mqjp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/issues/20188","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/3e9fb8aafd9834ebacd27734cea4310caaf794c6","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":10.89},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":[">= 1.35.1, < 1.36.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-02T20:04:17.278451Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":[">=1.35.1, <1.36.3"],"patched":["1.36.3"],"from":["GHSA-wrqv-pf6j-mqjp"],"provenance":"source"}],"summary":{"text":"Deno's Node.js compatibility runtime, in versions 1.35.1 before 1.36.3, re-uses a global buffer (BUF in stream_wrap.ts) during simultaneous asynchronous reads from Node.js streams backed by sockets or files, so data meant for one session can be delivered to another. An attacker with network access can exploit this without authentication or user interaction, provided the affected Deno application uses the Node.js compatibility layer for network communication or other streams, including through indirectly required Node.js packages.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:39Z"},"euvd":{"id":"EUVD-2024-1029","exploited":false,"provenance":"source"}}