Race Condition Affecting deno package, versions <1.30.3-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.37% (73rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-WOLFILATEST-DENO-5846992
  • published21 Aug 2023
  • disclosed17 Jan 2023

Introduced: 17 Jan 2023

CVE-2023-22499  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade Wolfi deno to version 1.30.3-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream deno package and not the deno package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

Deno is a runtime for JavaScript and TypeScript that uses V8 and is built in Rust. Multi-threaded programs were able to spoof interactive permission prompt by rewriting the prompt to suggest that program is waiting on user confirmation to unrelated action. A malicious program could clear the terminal screen after permission prompt was shown and write a generic message. This situation impacts users who use Web Worker API and relied on interactive permission prompt. The reproduction is very timing sensitive and can’t be reliably reproduced on every try. This problem can not be exploited on systems that do not attach an interactive prompt (for example headless servers). The problem has been fixed in Deno v1.29.3; it is recommended all users update to this version. Users are advised to upgrade. Users unable to upgrade may run with --no-prompt flag to disable interactive permission prompts.

CVSS Scores

version 3.1