Description
crypto-js is a JavaScript library of crypto standards. Prior to version 4.2.0, crypto-js PBKDF2 is 1,000 times weaker than originally specified in 1993, and at least 1,300,000 times weaker than current industry standard. This is because it both defaults to SHA1, a cryptographic hash algorithm considered insecure since at least 2005, and defaults to one single iteration, a 'strength' or 'difficulty' value specified at 1,000 when specified in 1993. PBKDF2 relies on iteration count as a countermeasure to preimage and collision attacks. If used to protect passwords, the impact is high. If used to generate signatures, the impact is high. Version 4.2.0 contains a patch for this issue. As a workaround, configure crypto-js to use SHA256 with at least 250,000 iterations.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| brix | crypto-js | < 4.2.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | cryptojs | No fix yet | — |
| Debian 10 | cryptojs | 3.1.2+dfsg-2+deb10u1 | DLA-3669-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | cryptojs | 3.1.2+dfsg-2ubuntu0.20.04.1 | USN-6753-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | cryptojs | 3.1.2+dfsg-3ubuntu0.22.04.1~esm1 | USN-6753-1 |
| Ubuntu Pro 18.04 LTS | cryptojs | 3.1.2+dfsg-2ubuntu0.18.04.1~esm1 | USN-6753-1 |
| Ubuntu Pro 16.04 LTS | cryptojs | 3.1.2+dfsg-2ubuntu0.16.04.1~esm1 | USN-6753-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | dotnet-hostfxr-6.0 +5 | 6.0.26-1.el9_3 | RHSA-2024:0156 |
| RHEL 9 | dotnet-hostfxr-7.0 +5 | 7.0.15-1.el9_3 | RHSA-2024:0805, RHSA-2024:0151 |
| RHEL 9 | dotnet6.0 +3 | 6.0.126-1.el9_3 | RHSA-2024:0156 |
| RHEL 9 | dotnet7.0 +3 | 7.0.115-1.el9_3 | RHSA-2024:0805, RHSA-2024:0151 |
| RHEL 8 | dotnet-hostfxr-6.0 +5 | 6.0.26-1.el8_9 | RHSA-2024:0158 |
| RHEL 8 | dotnet-hostfxr-7.0 +5 | 7.0.15-1.el8_9 | RHSA-2024:0806, RHSA-2024:0157 |
| RHEL 8 | dotnet6.0 +3 | 6.0.126-1.el8_9 | RHSA-2024:0158 |
| RHEL 8 | dotnet7.0 +3 | 7.0.115-1.el8_9 | RHSA-2024:0806, RHSA-2024:0157 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | crypto-js | < 4.2.0 | 4.2.0 | GHSA-xwcq-pm8m-c4vf |
Advisories 9
- RHSA-2024:0806 Red Hat Security Advisory: dotnet7.0 security update Red Hat Security Advisories (RHSA) · Aug 14, 2026
- RHSA-2024:0805 Red Hat Security Advisory: dotnet7.0 security update Red Hat Security Advisories (RHSA) · Aug 14, 2026
- RHSA-2024:0158 Red Hat Security Advisory: .NET 6.0 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2024:0156 Red Hat Security Advisory: .NET 6.0 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2024:0157 Red Hat Security Advisory: .NET 7.0 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2024:0151 Red Hat Security Advisory: .NET 7.0 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- USN-6753-1 cryptojs vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- WID-SEC-2026-0949 IBM Security Verify Access: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 7, 2026
- DLA-3669-1 cryptojs - security update Debian Security (DSA / DLA) · Mar 9, 2026