Skip to content

Commit 227cced

Browse files
authored
Merge pull request #71 from pablopunk/fractal-doce-dev-work-63-update-vulnerable-dependencies-13-high-23-3c1343
fix: update vulnerable dependencies (13 high / 23 moderate / 1 low → 0)
2 parents 5ec6301 + 273c422 commit 227cced

3 files changed

Lines changed: 1052 additions & 1126 deletions

File tree

docs/security-overrides.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Security dependency overrides
2+
3+
This project uses `pnpm.overrides` only when a vulnerable transitive dependency cannot be updated through a direct parent dependency yet, or when pnpm's auto-installed peer dependencies need to be kept aligned with an updated security-sensitive package family.
4+
5+
## `dompurify >=3.4.0 <4.0.0`
6+
7+
`dompurify` is pulled in transitively through:
8+
9+
```text
10+
@monaco-editor/react > monaco-editor > dompurify
11+
```
12+
13+
`@monaco-editor/react` is already at the current available release, so the dependency is forced with a pnpm override until the parent packages update their own `dompurify` dependency.
14+
15+
This override addresses these advisories:
16+
17+
- GHSA-v2wj-7wpq-c8vv
18+
- GHSA-cjmm-f4jc-qw8r
19+
- GHSA-cj63-jhhr-wcxv
20+
- GHSA-39q2-94rc-95cp
21+
- GHSA-h7mw-gpvr-xq4m
22+
- GHSA-crv5-9vww-q3g8
23+
- GHSA-v9jr-rg53-9pgp
24+
- GHSA-h8r8-wccr-v5f2
25+
26+
Remove this override when `@monaco-editor/react` or `monaco-editor` updates its `dompurify` dependency to a patched version.
27+
28+
## `esbuild >=0.28.1 <0.29.0`
29+
30+
`esbuild` is pulled in transitively through Astro/Vite production paths, including:
31+
32+
```text
33+
@astrojs/react > vite > esbuild
34+
@astrojs/react > vite > tsx > esbuild
35+
```
36+
37+
This override is present because the currently selected Astro/Vite production dependency graph still resolves vulnerable `esbuild` versions while `pnpm audit --prod` requires `>=0.28.1`.
38+
39+
This override addresses these advisories:
40+
41+
- GHSA-gv7w-rqvm-qjhr
42+
- GHSA-g7r4-m6w7-qqqr
43+
44+
Remove this override when Astro, Vite, or tsx updates its own `esbuild` dependency to a patched version.
45+
46+
## Effect peer dependency alignment
47+
48+
`@effect/platform-node` is updated to `0.107.0` for security fixes in its production dependency path. pnpm auto-installs peer dependencies for this package family, and without overrides it can keep older peer versions that no longer match what `@effect/platform-node@0.107.0` expects.
49+
50+
These overrides keep the Effect peer family aligned while allowing patch releases within the same pre-1.0 minor line:
51+
52+
- `@effect/cluster >=0.59.0 <0.60.0`
53+
- `@effect/rpc >=0.75.1 <0.76.0`
54+
- `@effect/sql >=0.51.1 <0.52.0`
55+
56+
pnpm overrides alone do not change every auto-installed peer selection in this dependency graph, so the matching peer packages are also listed as direct dependencies. `@effect/workflow` and `@effect/experimental` are direct dependencies for the same alignment reason because they are required peers of the updated `@effect/cluster` and `@effect/sql` versions.
57+
58+
Remove these overrides and direct Effect peer dependencies when the Effect packages can be updated together without pnpm peer dependency warnings.

package.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,26 @@
2626
"update-opencode-version": "node scripts/update-opencode-version.mjs"
2727
},
2828
"packageManager": "pnpm@10.20.0",
29+
"pnpm": {
30+
"overrides": {
31+
"@effect/cluster": ">=0.59.0 <0.60.0",
32+
"@effect/rpc": ">=0.75.1 <0.76.0",
33+
"@effect/sql": ">=0.51.1 <0.52.0",
34+
"dompurify": ">=3.4.0 <4.0.0",
35+
"esbuild": ">=0.28.1 <0.29.0"
36+
}
37+
},
2938
"dependencies": {
30-
"@astrojs/node": "10.0.4",
31-
"@astrojs/react": "5.0.2",
39+
"@astrojs/node": "10.1.4",
40+
"@astrojs/react": "5.0.7",
3241
"@base-ui/react": "^1.2.0",
33-
"@effect/platform": "^0.94.5",
34-
"@effect/platform-node": "^0.104.1",
42+
"@effect/cluster": "^0.59.0",
43+
"@effect/experimental": "^0.60.0",
44+
"@effect/platform": "^0.96.1",
45+
"@effect/platform-node": "^0.107.0",
46+
"@effect/rpc": "^0.75.1",
47+
"@effect/sql": "^0.51.1",
48+
"@effect/workflow": "^0.18.2",
3549
"@fontsource-variable/inter": "^5.2.8",
3650
"@monaco-editor/react": "^4.7.0",
3751
"@opencode-ai/sdk": "^1.14.31",
@@ -40,13 +54,13 @@
4054
"@tailwindcss/vite": "^4.2.0",
4155
"ai": "^6.0.97",
4256
"argon2": "^0.44.0",
43-
"astro": "6.1.1",
57+
"astro": "6.4.6",
4458
"better-sqlite3": "^12.6.2",
4559
"class-variance-authority": "^0.7.1",
4660
"clsx": "^2.1.1",
4761
"cmdk": "^1.1.1",
48-
"drizzle-orm": "^0.45.1",
49-
"effect": "^3.19.18",
62+
"drizzle-orm": "^0.45.2",
63+
"effect": "^3.21.3",
5064
"highlight.js": "^11.11.1",
5165
"lucide-react": "^0.561.0",
5266
"motion": "^12.34.3",

0 commit comments

Comments
 (0)