GHSA-3w3w-pxmm-2w2j

Suggest an improvement
Source
https://github.com/advisories/GHSA-3w3w-pxmm-2w2j
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-3w3w-pxmm-2w2j/GHSA-3w3w-pxmm-2w2j.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3w3w-pxmm-2w2j
Aliases
Published
2023-06-12T03:30:17Z
Modified
2025-01-06T18:35:21Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
crypto-js uses insecure random numbers
Details

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 output more predictable than necessary.

Database specific
{
    "github_reviewed_at": "2023-06-13T12:44:48Z",
    "cwe_ids": [
        "CWE-330",
        "CWE-331"
    ],
    "nvd_published_at": "2023-06-12T02:15:48Z",
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

npm / crypto-js

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2.1