Uncaught Exception Affecting rustyscript package, versions >=0.4.0 <0.6.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-RUSTYSCRIPT-8456321
  • published5 Dec 2024
  • disclosed4 Dec 2024
  • creditRichard Carson

Introduced: 4 Dec 2024

CVE NOT AVAILABLE CWE-248  (opens in a new tab)

How to fix?

Upgrade rustyscript to version 0.6.1 or higher.

Overview

Affected versions of this package are vulnerable to Uncaught Exception through the op_panic function. An attacker can trigger a manual panic in the thread containing the runtime.

Workaround

This vulnerability can be mitigated by stubbing out:

Deno.core.ops.op_panic = (msg) => { throw new Error(msg) };

CVSS Scores

version 4.0
version 3.1