# fast-copy: Stack exhaustion in fast-copy when copying deeply-nested values

Advisory record · `GHSA-jggr-w7fw-pc2j`

- **Identifiers:** `GHSA-jggr-w7fw-pc2j`
- **State:** Confirmed
- **Severity:** CVSS 4.0, no score published
- **Critical:** No
- **Weakness (CWE):** [CWE-674](https://cwe.mitre.org/data/definitions/674.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 5 Oct 2026
- **Updated:** 5 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 5 Oct 2026, 22:52 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `fast-copy` (npm): affected `>=4.0.0, <4.1.0 || >=3.0.0, <3.1.0 || <2.2.0`; fixed in `4.1.0`, `3.1.0`, `2.2.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Versions of the fast-copy npm package before 2.2.0, from 3.0.0 before 3.1.0, and from 4.0.0 before 4.1.0 are affected. Copying a deeply nested value makes the library's recursive traversal exhaust the call stack, which throws a RangeError; the source says there is no memory corruption or data exposure, and the failure is limited to the failing call. The source gives the fix as upgrading to 2.2.0, 3.1.0, or 4.1.0, which add a maxDepth option (default 1000) that raises a MaxDepthExceededError instead.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- Score not published, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** No score.

## Timeline

- 31 Oct 2026, 13:34 UTC: First seen by agentprime
- 31 Oct 2026, 13:34 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-jggr-w7fw-pc2j)

## Sources

- [GitHub Advisory Database: GHSA-jggr-w7fw-pc2j](https://github.com/advisories/GHSA-jggr-w7fw-pc2j)
- [OSV: GHSA-jggr-w7fw-pc2j](https://osv.dev/vulnerability/GHSA-jggr-w7fw-pc2j)
- <https://github.com/planttheidea/fast-copy/security/advisories/GHSA-jggr-w7fw-pc2j>
- <https://github.com/planttheidea/fast-copy/pull/137>
- <https://github.com/planttheidea/fast-copy/pull/138>
- <https://github.com/planttheidea/fast-copy/pull/139>
- <https://github.com/planttheidea/fast-copy/commit/359c00884ae8ae31f10925fd0e2fc66661db6cef>
- <https://github.com/planttheidea/fast-copy/commit/caa7caace65767dfe252f0dc5115d82c99ca16b9>
- <https://github.com/planttheidea/fast-copy/commit/dedf465e5329fbd149f13b53521af962d16ff8df>
- <https://github.com/planttheidea/fast-copy>
- <https://github.com/planttheidea/fast-copy/releases/tag/v2.2.0>
- <https://github.com/planttheidea/fast-copy/releases/tag/v3.1.0>
- <https://github.com/planttheidea/fast-copy/releases/tag/v4.1.0>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-jggr-w7fw-pc2j>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-jggr-w7fw-pc2j/>. Everything for agents: <https://agentprime.io/llms.txt>.
