Commit 6ce2bec
authored
fix: patch flatted CVE-2026-32141 unbounded recursion DoS (#27)
Resolves Dependabot alert
[#78](https://github.com/BYK/superset/security/dependabot/78).
## Summary
Adds a pnpm override for `flatted >=3.4.0` to fix
[CVE-2026-32141](https://nvd.nist.gov/vuln/detail/CVE-2026-32141) (HIGH,
CVSS 7.5) — an unbounded recursion DoS in `flatted.parse()` that can
crash Node.js with a single crafted payload.
## Details
The transitive dependency chain is:
```
eslint → file-entry-cache → flat-cache@4.0.1 → flatted@3.3.4 (vulnerable)
```
`flat-cache@4.0.1` declares `flatted@^3.2.9`, which is semver-compatible
with `3.4.0+`, so the override safely forces resolution to the patched
version (`3.4.2`) without breaking the dependency contract. This follows
the existing override pattern used for `serialize-javascript` and
`diff`.
## Changes
- **package.json**: Added `"flatted": ">=3.4.0"` to `pnpm.overrides`
- **pnpm-lock.yaml**: Regenerated (`flatted@3.3.4` → `flatted@3.4.2`)
All 38 tests pass ✅1 parent 7cfd349 commit 6ce2bec
3 files changed
+7
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 6 | | |
13 | 7 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments