Skip to content

Commit 5395642

Browse files
authored
Merge pull request #315 from tbrandenburg/fix/issue-282-flatted-vulnerability
Fix: Security vulnerability in flatted (GHSA-25h7-pfq9-p65f) (#282)
2 parents ccfa18f + dda8cd9 commit 5395642

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Implementation: Issue #282 - flatted Security Vulnerability
2+
3+
**Issue**: #282 - Security Vulnerability: flatted has high severity vulnerability (GHSA-25h7-pfq9-p65f)
4+
**Type**: CHORE
5+
**Completed**: 2026-03-27
6+
**Branch**: `fix/issue-282-flatted-vulnerability`
7+
**PR**: #315
8+
9+
## Problem Statement
10+
11+
The `flatted` package (version <3.4.0) had a high severity vulnerability (GHSA-25h7-pfq9-p65f) that allowed unbounded recursion DoS attacks in the parse() revive phase.
12+
13+
## Solution
14+
15+
Added npm override to `packages/frontend/package.json`:
16+
17+
```json
18+
"overrides": {
19+
"picomatch": "4.0.4",
20+
"flatted": ">=3.4.0"
21+
}
22+
```
23+
24+
## Changes Made
25+
26+
| File | Change |
27+
|------|--------|
28+
| `packages/frontend/package.json` | Added flatted override to ensure >=3.4.0 |
29+
30+
## Validation
31+
32+
| Check | Result |
33+
|-------|--------|
34+
| npm audit | ✅ 0 vulnerabilities |
35+
| npm run lint | ✅ Pass |
36+
| npm run build | ✅ Pass |
37+
38+
## Notes
39+
40+
- The vulnerability existed as a transitive dependency through ESLint
41+
- Override ensures the fix cannot be accidentally reverted
42+
- No code changes required - pure dependency fix

packages/frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"vitest": "^4.0.18"
4646
},
4747
"overrides": {
48-
"picomatch": "4.0.4"
48+
"picomatch": "4.0.4",
49+
"flatted": ">=3.4.0"
4950
}
5051
}

0 commit comments

Comments
 (0)