BreachSpiderVerified, not vibes

CVE-2022-39218 in Fastly Js-Compute

High 7.5

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 (pseud...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS0.9%
EPSS percentile58th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Fastly Js-Compute < 0.5.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-39218
BreachSpider IDBS-2022-GLOBAL-331375-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published2022-09-20
Last modified2024-11-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-335: CWE-335

Analysis AI-written, not human-reviewed

CVE-2022-39218 affects the JS Compute Runtime for Fastly's Compute@Edge platform in versions prior to 0.5.3, where the `Math.random` and `crypto.getRandomValues` methods do not generate sufficiently random values due to a predictable seed in the WebAssembly module.

An attacker could exploit this vulnerability to predict the output of `Math.random` and `crypto.getRandomValues`, potentially leading to security issues such as predictable session tokens or other cryptographic weaknesses.

Questions

What is CVE-2022-39218?

CVE-2022-39218 affects the JS Compute Runtime for Fastly's Compute@Edge platform in versions prior to 0.5.3, where the `Math.random` and `crypto.getRandomValues` methods do not generate sufficiently random values due to a predictable seed in the WebAssembly module.

What is the CVSS score for CVE-2022-39218?

CVE-2022-39218 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.9%.

Is CVE-2022-39218 actively exploited?

No confirmed active exploitation of CVE-2022-39218 as of 2026-05-30.

How do I remediate CVE-2022-39218?

Priority: HIGH.

What systems are affected by CVE-2022-39218?

CVE-2022-39218 affects Fastly Js-Compute.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Fastly","product":"Js-Compute","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.