CVE-2026-49440: CWE-325: Missing Cryptographic Step in denoland deno
Deno versions prior to 2.8.1 contain a vulnerability in the node:crypto.checkPrime and crypto.checkPrimeSync functions where no Miller-Rabin primality test rounds are performed if the options.checks parameter is left at its default of 0. This causes certain composite numbers with large prime factors to be incorrectly identified as prime. The issue is fixed in version 2.8.1.
AI Analysis
Technical Summary
The vulnerability in denoland's Deno runtime affects the node:crypto.checkPrime(candidate[, options][, callback]) and crypto.checkPrimeSync(candidate[, options]) functions prior to version 2.8.1. When the options.checks parameter is set to its default value of 0, these functions skip the Miller-Rabin primality test rounds entirely, relying only on trial division by primes up to 17,863. This allows composite numbers whose smallest prime factor is greater than 17,863 to be falsely reported as probably prime. The lower-level op_node_check_prime and op_node_check_prime_bytes paths are also affected. This cryptographic step omission is classified under CWE-325 and is addressed by updating to Deno 2.8.1.
Potential Impact
The vulnerability causes the primality checking functions to incorrectly identify certain composite numbers as prime, potentially undermining cryptographic operations that rely on accurate prime validation. This could lead to weakened cryptographic guarantees, impacting confidentiality and integrity in affected applications. The CVSS score of 7.4 reflects a high severity with network attack vector, high impact on confidentiality and integrity, and no privileges or user interaction required.
Mitigation Recommendations
A fix is available in Deno version 2.8.1. Users should upgrade to version 2.8.1 or later to ensure the Miller-Rabin primality tests are properly performed. No other mitigation is indicated or required.
CVE-2026-49440: CWE-325: Missing Cryptographic Step in denoland deno
Description
Deno versions prior to 2.8.1 contain a vulnerability in the node:crypto.checkPrime and crypto.checkPrimeSync functions where no Miller-Rabin primality test rounds are performed if the options.checks parameter is left at its default of 0. This causes certain composite numbers with large prime factors to be incorrectly identified as prime. The issue is fixed in version 2.8.1.
CVSS v3.1
Score 7.4high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in denoland's Deno runtime affects the node:crypto.checkPrime(candidate[, options][, callback]) and crypto.checkPrimeSync(candidate[, options]) functions prior to version 2.8.1. When the options.checks parameter is set to its default value of 0, these functions skip the Miller-Rabin primality test rounds entirely, relying only on trial division by primes up to 17,863. This allows composite numbers whose smallest prime factor is greater than 17,863 to be falsely reported as probably prime. The lower-level op_node_check_prime and op_node_check_prime_bytes paths are also affected. This cryptographic step omission is classified under CWE-325 and is addressed by updating to Deno 2.8.1.
Potential Impact
The vulnerability causes the primality checking functions to incorrectly identify certain composite numbers as prime, potentially undermining cryptographic operations that rely on accurate prime validation. This could lead to weakened cryptographic guarantees, impacting confidentiality and integrity in affected applications. The CVSS score of 7.4 reflects a high severity with network attack vector, high impact on confidentiality and integrity, and no privileges or user interaction required.
Mitigation Recommendations
A fix is available in Deno version 2.8.1. Users should upgrade to version 2.8.1 or later to ensure the Miller-Rabin primality tests are properly performed. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-30T02:43:33.105Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3ac4efeed863c81e61823a
Added to database: 06/23/2026, 17:39:59 UTC
Last enriched: 06/23/2026, 17:54:09 UTC
Last updated: 06/23/2026, 17:55:29 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.