# Prototype Pollution via parse() in NodeJS flatted

Advisory record · `GHSA-rf6f-7fwh-wjgh`

- **Identifiers:** `GHSA-rf6f-7fwh-wjgh` · `CVE-2026-33228`
- **State:** Confirmed
- **Severity:** CVSS 8.9 High
- **Critical:** No
- **Weakness (CWE):** [CWE-915](https://cwe.mitre.org/data/definitions/915.html) · [CWE-1321](https://cwe.mitre.org/data/definitions/1321.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md) · [Prototype pollution](https://agentprime.io/advisories/tag/prototype-pollution.md)
- **Published:** 19 Mar 2026
- **Updated:** 5 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 19 Mar 2026, 17:43 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `flatted` (npm): affected `<3.4.2`; fixed in `3.4.2`

## Machine-written summary

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

> Prototype pollution in the flatted npm package affects versions before 3.4.2, caused by parse() using attacker-controlled string values as array index keys without checking they are numeric. An attacker who can supply a crafted flatted string to parse() can get the returned object to hold a live reference to Array.prototype, which downstream code that writes to that property could use to pollute the global prototype, with possible denial of service or code execution. Upgrade flatted to version 3.4.2 or later, which is the listed fixed version.

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

- 8.9 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0094, the 61st percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## 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-rf6f-7fwh-wjgh)

## Sources

- [GitHub Advisory Database: GHSA-rf6f-7fwh-wjgh](https://github.com/advisories/GHSA-rf6f-7fwh-wjgh)
- [OSV: GHSA-rf6f-7fwh-wjgh](https://osv.dev/vulnerability/GHSA-rf6f-7fwh-wjgh)
- <https://github.com/WebReflection/flatted/security/advisories/GHSA-rf6f-7fwh-wjgh>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33228>
- <https://github.com/WebReflection/flatted/commit/885ddcc33cf9657caf38c57c7be45ae1c5272802>
- <https://access.redhat.com/errata/RHSA-2026:13826>
- <https://access.redhat.com/errata/RHSA-2026:34342>
- <https://access.redhat.com/errata/RHSA-2026:9742>
- <https://access.redhat.com/security/cve/CVE-2026-33228>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2449872>
- <https://github.com/WebReflection/flatted>
- <https://github.com/WebReflection/flatted/releases/tag/v3.4.2>

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-rf6f-7fwh-wjgh>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-rf6f-7fwh-wjgh/>. Everything for agents: <https://agentprime.io/llms.txt>.
