CVE-2026-49440 Deno: Miller-Rabin Primality Test Allows Zero Rounds
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.8.1, node:crypto.checkPrime(candidate[, options][, callback]) and crypto.checkPrimeSync(candidate[, options]) ran no Miller-Rabin rounds at all when the caller left options.checks at its default of 0. In that mode, the only test applied to the candidate was trial division by the primes up to 17,863. Any composite whose smallest prime factor exceeds that bound — for example the product of two primes just above it, such as 17,881 × 17,891 — was reported as true ("probably prime"). The same divergence affected the lower-level op_node_check_prime / op_node_check_prime_bytes paths that the polyfill calls into. This vulnerability is fixed in 2.8.1.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io deno(crates.io) | < 2.8.1; <= 2.8.0 | 2.8.1 | Fixed |
| deno | < 2.8.1 | 2.8.1 | Fixed |
| denoland deno | = < 2.8.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io deno(crates.io) | < 2.8.1 | 2.8.1 |
| denoland deno | = < 2.8.1 | No fix listed |
| crates.io deno(crates.io) | <= 2.8.0 | No fix listed |
| deno | < 2.8.1 | 2.8.1 |
References
- https://github.com/denoland/deno/security/advisories/GHSA-9xg4-qhm4-g43w third-party-advisory vendor-advisory
- https://github.com/denoland/deno/pull/34391 issue-tracking patch
- github.com product
- github.com