Skip to content
Heist/ feed
Back to feed
Critical

cryptojs — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-71851

crypto-js is a JavaScript library of crypto standards. Versions of crypto-js prior to 4.0.0 generate randomness in CryptoJS.lib.WordArray.random() using a custom variation of the Multiply-With-Carry pseudorandom number generator, seeded from Math.random(), instead of a cryptographically secure source. This generator was introduced in version 3.1.2-4 and remained present in nearly every 3.x release. Nominal requests for 128 or 256 bits of entropy through this function produce effective search spaces of approximately 2 to the 39th and 2 to the 47th possibilities, small enough to enumerate on commodity hardware. Downstream wallet applications that used CryptoJS.lib.WordArray.random() as the entropy source for BIP39 recovery phrases are affected, and an attacker who enumerates the reduced output space can recover the resulting private keys and control the associated funds. This issue is fixed in version 4.0.0.

Products
cryptojs
Affected versions
3.1.2+dfsg-3, 3.1.2+dfsg-4
Fixed versions
Not specified
CVEs
CVE-2026-71851
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:56 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-71851

core-osv · Original source

Published 7 Aug 2026, 19:18 UTC

crypto-js is a JavaScript library of crypto standards. Versions of crypto-js prior to 4.0.0 generate randomness in CryptoJS.lib.WordArray.random() using a custom variation of the Multiply-With-Carry pseudorandom number generator, seeded from Math.random(), instead of a cryptographically secure source. This generator was introduced in version 3.1.2-4 and remained present in nearly every 3.x release. Nominal requests for 128 or 256 bits of entropy through this function produce effective search spaces of approximately 2 to the 39th and 2 to the 47th possibilities, small enough to enumerate on commodity hardware. Downstream wallet applications that used CryptoJS.lib.WordArray.random() as the entropy source for BIP39 recovery phrases are affected, and an attacker who enumerates the reduced output space can recover the resulting private keys and control the associated funds. This issue is fixed in version 4.0.0.

osv:DEBIAN-CVE-2026-71851

cryptojs

Fixed versions: Not specified

Complete source record
{
  "id": "c01318253387d8f6a22a9f7a6f8202412e38a5ab2fbaf495a9f0975a74e16ea8",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-71851",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-71851",
    "summary": "crypto-js is a JavaScript library of crypto standards. Versions of crypto-js prior to 4.0.0 generate randomness in CryptoJS.lib.WordArray.random() using a custom variation of the Multiply-With-Carry pseudorandom number generator, seeded from Math.random(), instead of a cryptographically secure source. This generator was introduced in version 3.1.2-4 and remained present in nearly every 3.x release. Nominal requests for 128 or 256 bits of entropy through this function produce effective search spaces of approximately 2 to the 39th and 2 to the 47th possibilities, small enough to enumerate on commodity hardware. Downstream wallet applications that used CryptoJS.lib.WordArray.random() as the entropy source for BIP39 recovery phrases are affected, and an attacker who enumerates the reduced output space can recover the resulting private keys and control the associated funds. This issue is fixed in version 4.0.0.",
    "evidence": "osv:DEBIAN-CVE-2026-71851",
    "products": [
      {
        "name": {
          "value": "cryptojs",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.2+dfsg-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.1.2+dfsg-4",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2026-71851",
      "aliases": [
        "DEBIAN-CVE-2026-71851"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cryptojs",
            "purl": "pkg:deb/debian/cryptojs?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "3.1.2+dfsg-3",
            "3.1.2+dfsg-4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-71851.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-25T09:47:38.549384280Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-71851"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-71851"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-71851",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 445323,
  "published_at": "2026-08-07T19:18:54.39+00:00"
}