crypto-js
Pure JavaScript library of hashes, HMAC, PBKDF2 and ciphers: MD5, SHA-1, SHA-2, a Keccak function it calls SHA3, RIPEMD-160, AES, TripleDES, RC4 and Rabbit.
In short
What to know.
- Algorithms
- SHA-1, SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512), Keccak-256, RIPEMD-160 and 3 moreNone would be broken by a large quantum computer.
- Advisories
- 3 in the storeOSV last read 3 December 2026, 16:48 UTC.
- What to do
- Its source marks it deprecated or unmaintained: plan a replacement. Check your version against the advisories below. Each lists its affected and fixed versions.
3 in the store
Advisories
| Advisory | Id | Affected versions | Fixed in | Source's rating |
|---|---|---|---|---|
| crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable CryptoJS Dependency Chain | GHSA-rg76-677x-56q9 | before 4.0.0 | Fixed in 4.0.0 | Rated Critical |
| crypto-js PBKDF2 1,000 times weaker than specified in 1993 and 1.3M times weaker than current standard | GHSA-xwcq-pm8m-c4vf | before 4.2.0 | Fixed in 4.2.0 | Rated Critical |
| crypto-js uses insecure random numbers | GHSA-3w3w-pxmm-2w2j | from 3.2.0 before 3.2.1; listed versions 3.2.0 | Fixed in 3.2.1 | Rated Moderate |
3 listed
Findings
| Finding | Id | Severity | Updated |
|---|---|---|---|
| crypto-js PBKDF2 1,000 times weaker than specified in 1993 and 1.3M times weaker than current standard | NMN-2026-0020 | Severity Critical | 3 December 2026 |
| crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable CryptoJS Dependency Chain | NMN-2026-0018 | Severity Critical | 3 December 2026 |
| crypto-js uses insecure random numbers | NMN-2026-0016 | Severity Moderate | 3 December 2026 |
Reviewed 3 December 2026
Sources
- npm registry metadata for crypto-js (deprecation message)registry.npmjs.orgRetrieved 3 December 2026
- crypto-js READMEgithub.comRetrieved 3 December 2026
- CryptoJS documentation (SHA-3 naming note)cryptojs.gitbook.ioRetrieved 3 December 2026
Full record
- Package
- crypto-js
- Ecosystem
- npm
- Role
- Implementation
- Repository
- github.com/brix/crypto-js
- Status
- Marked deprecated or unmaintained by its source.
- Notes
- The registry marks 4.2.0 deprecated: "Active development of CryptoJS has been discontinued. This library is no longer maintained." The README recommends the native crypto module instead. Its SHA3 function is the original Keccak, not FIPS 202 SHA-3, as the documentation states.
- Reviewed
- Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
- Advisories read
- Last read from OSV 3 December 2026, 16:48 UTC
- Findings
- 3 listed above.
Algorithms it provides
- SHA-1 hashHashWeakened by Grover's search
- SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512) hashHashWeakened by Grover's search
- Keccak-256 hashHashWeakened by Grover's search
- RIPEMD-160 hashHashWeakened by Grover's search
- HMAC macSymmetricWeakened by Grover's search
- PBKDF2 kdfSymmetricWeakened by Grover's search
- AES cipherSymmetricWeakened by Grover's search
What a large quantum computer would change
- Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.SHA-1, SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512), Keccak-256, RIPEMD-160, HMAC, PBKDF2, AES
Notes describe algorithm families, not any one project.