Missing Cryptographic Step Affecting deno package, versions <2.8.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th 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 IDSNYK-RUST-DENO-17660657
  • published27 Jun 2026
  • disclosed16 Jun 2026
  • creditUnknown

Introduced: 16 Jun 2026

NewCVE-2026-49440  (opens in a new tab)
CWE-325  (opens in a new tab)

How to fix?

Upgrade deno to version 2.8.1 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 Missing Cryptographic Step in the crypto.checkPrime and crypto.checkPrimeSync functions when the options.checks parameter is set to its default value of 0, causing the Miller-Rabin primality test to perform no rounds. An attacker can cause the acceptance of composite numbers as primes by supplying specially crafted numbers with prime factors above the trial division threshold. This can undermine cryptographic protocols if the application uses the result for security-sensitive operations.

Workaround

This vulnerability can be mitigated by explicitly passing a non-zero checks value (such as 64) when calling the affected functions, and by avoiding reliance on these functions to validate attacker-influenced numbers in security-critical code until patched.

CVSS Base Scores

version 4.0
version 3.1