crypto-js is deprecated
Deprecated. The source gives no day. Replacement: Web Crypto API (globalThis.crypto.subtle) or a maintained cryptography library. Source: crypto-js on npm.
Check a version:
evergreen check pkg:npm/crypto-js
npm marks crypto-js as deprecated: “Active development of CryptoJS has been discontinued. This library is no longer maintained.”
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | Deprecated |
| Severity | high |
| Ecosystem | npm |
| Component | pkg:npm/crypto-js |
| Affected versions | vers:npm/* |
| Date from the source | The source gives no day |
| Replacement | Web Crypto API (globalThis.crypto.subtle) or a maintained cryptography library |
| Evidence last seen | 2026-10-19 |
| Reviewed | 2026-10-19 by arminazimi, drafted by the npm-deprecated importer |
| Review due | 2027-10-19 (365 days after the last review) |
| Rule ID | npm.package.crypto-js.deprecated |
Sources
- crypto-js on npm (accessed 2026-10-19)
- crypto-js registry metadata (accessed 2026-10-19)
Migration
Constraints
- Preserve the algorithms, modes, padding, key derivation, and output encodings each call site relies on, so data encrypted before the change still decrypts afterwards.
Steps
- Audit every cryptographic call. List each hash, cipher, KDF, HMAC, and encoding call with its algorithm, mode, padding, IV, and key size.
- Reimplement with a maintained implementation. Replace each call with the Web Crypto API or a maintained library that supports the same algorithms and parameters.
- Remove crypto-js. Remove crypto-js from dependencies and the lockfile once no call sites remain.
Verification
npm run test --if-present: Round-trip existing ciphertext and compare known-answer vectors in the repository tests.npm run build --if-present: Type-check and build every affected entry point.
Detected by
The npm detector. See Detectors and Compatibility.
Related
Same ecosystem
- abab is deprecated
- @angular/core v18 and older are no longer supported
- @angular/core v19 is no longer supported
- @angular/core v20 reaches end of life on 2026-11-28
- @angular/core v21 reaches end of life on 2027-06-30
- @angular/core v22 reaches end of life on 2028-06-30
- are-we-there-yet is no longer supported
- babel-eslint is deprecated
Data
This page is generated from registry/npm.json, rule npm.package.crypto-js.deprecated, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated