← Back to CVE Explorer

CVE-2026-49440

Full vulnerability record from the local CVENow database.

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.

Severity
HIGH
CVSS score
7.4 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-06-23 18:18:03.563000
Last modified
2026-10-25 23:10:00.167000
View original CVE JSON
{
  "id": "CVE-2026-49440",
  "sourceIdentifier": "[email protected]",
  "published": "2026-06-23T18:18:03.563",
  "lastModified": "2026-10-25T23:10:00.167",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "Deno es un entorno de ejecución de JavaScript, TypeScript y WebAssembly. Antes de 2.8.1, node:crypto.checkPrime(candidate[, options][, callback]) y crypto.checkPrimeSync(candidate[, options]) no realizaban ninguna ronda de Miller-Rabin en absoluto cuando el llamador dejaba options.checks en su valor predeterminado de 0. En ese modo, la única prueba aplicada al candidato era la división por tentativa por los números primos hasta 17.863. Cualquier número compuesto cuyo factor primo más pequeño excediera ese límite - por ejemplo, el producto de dos números primos justo por encima de él, como 17.881 × 17.891 - se reportaba como verdadero (’probablemente primo’). La misma divergencia afectaba a las rutas de bajo nivel op_node_check_prime / op_node_check_prime_bytes que el polyfill invoca. Esta vulnerabilidad está corregida en 2.8.1."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "denoland",
          "product": "deno",
          "versions": [
            {
              "version": "< 2.8.1",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N",
          "baseScore": 7.4,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "HIGH",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.2,
        "impactScore": 5.2
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-06-25T03:55:49.551538Z",
          "id": "CVE-2026-49440",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-325"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:*",
              "versionEndExcluding": "2.8.1",
              "matchCriteriaId": "91F453C2-277C-4350-8234-700B47587E97"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/denoland/deno/pull/34391",
      "source": "[email protected]",
      "tags": [
        "Issue Tracking"
      ]
    },
    {
      "url": "https://github.com/denoland/deno/security/advisories/GHSA-9xg4-qhm4-g43w",
      "source": "[email protected]",
      "tags": [
        "Third Party Advisory"
      ]
    }
  ]
}