{"id":"CVE-2022-39218","published":"2022-09-20T19:50:08Z","modified":"2025-04-23T16:56:59Z","title":"Random number seed fixed during compilation","vendor":"fastly","product":"js-compute-runtime","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00942,"percentile":0.61874,"provenance":"source"},"cwes":[{"id":"CWE-335","name":"Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://github.com/fastly/js-compute-runtime/security/advisories/GHSA-cmr8-5w4c-44v8","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":12.37},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"fastly","affectedVersions":[{"vendor":"fastly","product":"js-compute-runtime","versions":["< 0.5.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:51:22.174430Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@fastly/js-compute","vulnerableRanges":[">=0.4.0, <0.5.3"],"patched":["0.5.3"],"from":["GHSA-cmr8-5w4c-44v8"],"provenance":"source"}],"summary":{"text":"The js-compute-runtime component of Fastly's Compute@Edge JavaScript SDK, in versions prior to 0.5.3, has a fixed PRNG seed baked into the compiled WebAssembly module, so Math.random and crypto.getRandomValues produce predictable sequences. An attacker with network access and no authentication or user interaction can predict the random values generated by a given module and use them to bypass cryptographic protections, such as recovering sensitive data encrypted with those generators.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:43:01Z"},"euvd":{"id":"EUVD-2022-6780","exploited":false,"provenance":"source"}}