Access Restriction Bypass Affecting deno package, versions <1.29.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.19% (57th 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 ID SNYK-RUST-DENO-3233636
  • published 18 Jan 2023
  • disclosed 18 Jan 2023
  • credit Tristan F.

How to fix?

Upgrade deno to version 1.29.3 or higher.

Overview

deno is an a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.

Affected versions of this package are vulnerable to Access Restriction Bypass that allows attackers to spoof an interactive permission prompt using a multi-threaded program, by rewriting the prompt to suggest that program is waiting for user confirmation for an unrelated action.

NOTE: This is only exploitable if the Web Worker API is in use with an interactive permission prompt. Such an attack is very timing sensitive and can’t be reliably reproduced on every try.

Workaround

This can be avoided by enabling the --no-prompt flag.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    High
  • Availability (A)
    None
Expand this section

NVD

7.5 high