Random number seed fixed during compilation
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
The JS Compute Runtime for Fastly's Compute@Edge platform provides the environment JavaScript is executed in when using the Compute@Edge JavaScript SDK. In versions prior to 0.5.3, the `Math.random` and `crypto.getRandomValues` methods fail to use sufficiently random values. The initial value to seed the PRNG (pseudorandom number generator) is baked-in to the final WebAssembly module, making the sequence of random values for that specific WebAssembly module predictable. An attacker can use the fixed seed to predict random numbers generated by these functions and bypass cryptographic security controls, for example to disclose sensitive data encrypted by functions that use these generators. The problem has been patched in version 0.5.3. No known workarounds exist.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Fastly | js-compute-runtime | before 0.5.3 | 0.5.3 | Patch available | CNA |
| — | @fastly/js-compute (npm) | 0.4.0 to before 0.5.3 | 0.5.3 | Patch available | GHSA-cmr8-5w4c-44v8 |
- js-compute-runtime VendorFastly Affected before 0.5.3 Fixed in 0.5.3 Patch available CNA
- @fastly/js-compute (npm) Vendor— Affected 0.4.0 to before 0.5.3 Fixed in 0.5.3 Patch available GHSA-cmr8-5w4c-44v8
Remediation
- Fix · CNA js-compute-runtime (fastly) Fixed in 0.5.3
- Fix · GHSA-cmr8-5w4c-44v8 @fastly/js-compute (npm) Fixed in 0.5.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39218
- 2026-10-03 Alias added: GHSA-cmr8-5w4c-44v8
References
Sources
- CVE-2022-39218 · CVE Program
- CVE-2022-39218 · NVD
- FIRST EPSS
- GHSA-cmr8-5w4c-44v8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences