Commit 72da79c
fix: upgrade happy-dom and pin transitive deps to fix known CVEs
Addresses three advisories identified by npm audit:
- @happy-dom/global-registrator: ^15.11.0 → ^20.9.0
GHSA-37j7-fg3j-429f (critical) — VM context escape → RCE
GHSA-6q6h-j7hj-3r64 (high) — unsanitized export names executed as code
GHSA-w4gp-fjgq-3q4g (high) — fetch credentials leak
- rollup (transitive, via overrides): 3.29.5 → 3.30.0
GHSA-mw96-cpmx-2vgc (high) — arbitrary file write via path traversal
- postcss (transitive, via overrides): 8.5.6 → 8.5.14
GHSA-qx2v-qp2m-jg93 (moderate) — XSS via unescaped </style> in output
happy-dom v20 requires a document URL when using relative-URL fetch calls,
so GlobalRegistrator.register() is updated to pass url: 'http://localhost/'
as recommended by the library. Test pass/fail counts are unchanged (38/293
failures are all pre-existing and caused by the absent WASM build artifact).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6a1a50d commit 72da79c
3 files changed
Lines changed: 26 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | | - | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
0 commit comments