nodejs-cryptiles: Insecure randomness causes the randomDigits() function returns a pseudo-random data string biased to certain digits
Published Jul 9, 2018
9.8
CRITICALCVSS 3.1
EPSS 1.68%
Description
Eran Hammer cryptiles version 4.1.1 earlier contains a CWE-331: Insufficient Entropy vulnerability in randomDigits() method that can result in An attacker is more likely to be able to brute force something that was supposed to be random.. This attack appear to be exploitable via Depends upon the calling application.. This vulnerability appears to have been fixed in 4.1.2.
Affected products
No data.
- < 3.1.3
- ≥ 4.1.0 · < 4.1.2
No data.
Red Hat Mobile Application Platform 4
nodejs-cryptiles
Not affected
Red Hat OpenShift Enterprise 3
nodejs-cryptiles
Not affected
Red Hat Quay 3
quay/quay-rhel8
Fix deferred
Red Hat Software Collections
rh-nodejs6-nodejs-cryptiles
Not affected
Red Hat Software Collections
rh-nodejs8-nodejs
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Mobile Application Platform 4 | nodejs-cryptiles | Not affected | n/a |
| Red Hat OpenShift Enterprise 3 | nodejs-cryptiles | Not affected | n/a |
| Red Hat Quay 3 | quay/quay-rhel8 | Fix deferred | n/a |
| Red Hat Software Collections | rh-nodejs6-nodejs-cryptiles | Not affected | n/a |
| Red Hat Software Collections | rh-nodejs8-nodejs | Not affected | n/a |
cryptiles
npm
Introduced 4.0.0 Fixed 4.1.2cryptiles
npm
Introduced 3.1.0 Fixed 3.1.3
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | cryptiles | 4.0.0 | 4.1.2 |
| npm | cryptiles | 3.1.0 | 3.1.3 |
Remediation
Red Hat statement
Red Hat Quay imports nodejs-crypttiles as a development dependency. Reducing the impact of Red Hat Quay to low.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
AV:N/AC:L/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.68% (0.01681) | 76.10th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.68% (0.01681) | 73.87th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.40% (0.00402) | 58.71th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.21% (0.00205) | 59.36th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.21% (0.00205) | 57.46th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.30% (0.00297) | 65.48th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.22% (0.00222) | 58.63th | v3 (v2023.03.01) |
| Mar 6, 2023 | 9.03% (0.09029) | 94.14th | v2 (v2022.01.01) |
| Feb 4, 2022 | 9.03% (0.09029) | 86.86th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.84% (0.01840) | 47.83th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.84% (0.01840) | 0.00th | v1 |
References (13)
- https://access.redhat.com/security/cve/CVE-2018-1000620 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1608153 Issue Tracking
- https://github.com/advisories/GHSA-rq8g-5pc5-wrhr Advisory
- https://github.com/hapijs/cryptiles/commit/6bdcd0f6ee8ade96e7b30350bad39ee0c2ef0f9b
- https://github.com/hapijs/cryptiles/commit/9332d4263a32b84e76bf538d7470d01ea63fa047
- https://github.com/hapijs/cryptiles/commit/cb6bd642816e0cb8341d2b3896fd9e7c57e94f56
- https://github.com/hapijs/cryptiles/issues/34 Issue TrackingPatchThird Party Advisory
- https://github.com/hapijs/cryptiles/issues/35
- https://github.com/nodejs/security-wg/blob/master/vuln/npm/476.json
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000620
- https://www.cve.org/CVERecord?id=CVE-2018-1000620
- https://www.npmjs.com/advisories/1464
- https://www.npmjs.com/advisories/720
Change history (0)
No recorded changes yet.