# CVE-2026-49440: Deno: Miller-Rabin Primality Test Allows Zero Rounds

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 9% of CVEs (2026-11-30)
- Published: 2026-06-16T19:08:55.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-9xg4-qhm4-g43w
- Weaknesses: CWE-325
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- denoland deno: < 2.8.1
- deno (crates.io): before 2.8.1
- deno deno: before 2.8.1

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-9xg4-qhm4-g43w> (third-party-advisory, web)
- <https://github.com/denoland/deno/pull/34391> (issue-tracking, web)
- <https://github.com/denoland/deno> (package)

## Sources

- CVE List: [CVE-2026-49440](https://www.cve.org/CVERecord?id=CVE-2026-49440), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-9xg4-qhm4-g43w](https://github.com/advisories/GHSA-9xg4-qhm4-g43w), CC-BY-4.0, modified 2026-06-16
- NVD: [CVE-2026-49440](https://nvd.nist.gov/vuln/detail/CVE-2026-49440), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-49440 · Whole record: https://cve.day/CVE-2026-49440.json · Rebuilt by cve.day 2026-11-25T22:59:25.500Z
