# crypto-js (npm) vulnerabilities

3 known vulnerabilities (2 critical, 1 medium), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: 4.2.0 (Oct 24, 2023): no advisory affects it
- Newest unaffected release: Every release is affected by at least one advisory
- Weekly downloads: 26.1M
- Dependents: 55K
- Releases: 20 since 3.1.2 (May 7, 2013)
- Registry: https://www.npmjs.com/package/crypto-js
- Releases read: Nov 8, 2026

## Version timeline

Affected versions per advisory, in version order:

- CVE-2026-71851: 3.1.2-1 to 3.3.0 (4.0.0 is outside it)
- CVE-2023-46233: 3.1.2-1 to 4.1.1 (4.2.0 is outside it)
- CVE-2020-36732: 3.2.0 (3.2.1 is outside it)

## Advisories (3)

### [CVE-2026-71851](https://cve.now/CVE-2026-71851): crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable CryptoJS Dependency Chain

- Severity: Critical 9.0
- Published: Aug 7, 2026
- Affected: fixed in 4.0.0.
- Fixed in 4.0.0 (released Feb 12, 2020, 2368 days before disclosure).
- The latest release, 4.2.0, is not affected.
- 3.2% of crypto-js downloads last week were affected versions (948.3K).

### [CVE-2023-46233](https://cve.now/CVE-2023-46233): crypto-js PBKDF2 1,000 times weaker than specified in 1993 and 1.3M times weaker than current standard

- Severity: Critical 9.1
- Published: Oct 25, 2023
- Affected: fixed in 4.2.0.
- Fixed in 4.2.0 (released Oct 24, 2023, 1 day before disclosure).
- The latest release, 4.2.0, is not affected.
- 6.5% of crypto-js downloads last week were affected versions (2M).

### [CVE-2020-36732](https://cve.now/CVE-2020-36732): The crypto-js package before 3.2.1 for Node.js generates random numbers by concatenating the string "0." with an integer, which makes the…

- Severity: Medium 5.3
- Published: Jun 12, 2023
- Affected: from 3.2.0, fixed in 3.2.1.
- Fixed in 3.2.1 (released Feb 11, 2020, 1217 days before disclosure).
- The latest release, 4.2.0, is not affected.
- <0.1% of crypto-js downloads last week were affected versions (417).

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/npm/crypto-js
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
