CVE-2023-46233: brix crypto-js Use of Weak Hash
Vulnerability summary
CVE-2023-46233 is a critical (CVSS 9.1) Use of Weak Hash vulnerability in brix crypto-js. EPSS estimates a 0.64% chance of exploitation in the next 30 days, higher than 49.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 6 · Related 1Timeline
- 25-10-2023PublishedVulnerability first disclosed.
- 23-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- OSV · DebianEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- OSV · NpmEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- NVDNIST9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS trend
Probability
0.64%
Chance of exploitation in the next 30 days
Percentile
49%
Versus all other CVEs
30-day change
0.00 pp
From 0.64% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-328Use of Weak HashThe product uses an algorithm that produces a digest (output value) that does not meet security expectations for a hash function that allows an adversary to reasonably determine the original input (preimage attack), find another input that can produce the same hash (2nd preimage attack), or find multiple inputs that evaluate to the same hash (birthday attack).
- CWE-916Use of Password Hash With Insufficient Computational EffortThe product generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive.
- CWE-327Use of a Broken or Risky Cryptographic AlgorithmThe product uses a broken or risky cryptographic algorithm or protocol.
Affected systems
Brix1 product
- crypto-js< 4.2.0
Chainguard1 product
- arangodb-3.11< 3.11.14.4-r13
Crypto-js_project1 product
- crypto-js< 4.2.0
Debian1 product
- cryptojsAll versions (No fix recorded) | < 3.1.2+dfsg-2+deb10u1
Npm1 product
- crypto-js< 4.2.0
Ubuntu1 product
- cryptojsAll versions (No fix recorded) | < 3.1.2+dfsg-2ubuntu0.16.04.1~esm1 | < 3.1.2+dfsg-2ubuntu0.18.04.1~esm1 | < 3.1.2+dfsg-2ubuntu0.20.04.1 | < 3.1.2+dfsg-3ubuntu0.22.04.1~esm1
6 vendors · 6 products
References
10 links- github.com/brix/crypto-js/security/advisories/GHSA-xwcq-pm8m-c4vfX Refsource CONFIRMREPORTWEBAdvisoryVendor Advisory
- github.com/brix/crypto-js/commit/421dd538b2d34e7c24a5b72cc64dc2b9167db40aX Refsource MISCREPORTWEBFIXPatch
- github.com/brix/crypto-jsPACKAGE