Commit de720d6
Fix security vulnerabilities 311 (#312)
* fix: update @mll-lab/js-utils to fix lodash vulnerabilities
Updates @mll-lab/js-utils from 2.36.1 to 2.41.0, which includes
lodash 4.17.21 instead of the vulnerable 4.17.15.
Fixes 3 HIGH severity vulnerabilities:
- Command Injection (GHSA-35jh-r3h4-6jhm)
- Prototype Pollution (GHSA-p6mc-m468-83gw)
- ReDoS (GHSA-29mw-wpgm-hmr9)
Part of issue #311 - Chunk 1 of 5
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: update jest-environment-jsdom to fix form-data vulnerability
Updates jest-environment-jsdom from 29.7.0 to 30.2.0, which includes
jsdom 26.x with patched dependencies.
Fixes 1 CRITICAL severity vulnerability:
- form-data unsafe random function (GHSA-fjxv-7rqg-78g4)
Also fixes ws vulnerability in jsdom (moved to Storybook, will fix in next chunk).
Tests pass with some expected jsdom warnings about window.getComputedStyle
(known jsdom limitation, not a breaking issue).
Part of issue #311 - Chunk 2 of 5
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: update Storybook packages to v8.6.14
Updated Storybook packages from ^8.0.0 to ^8.2.10 (resolved to 8.6.14):
- @storybook/addon-essentials
- @storybook/react
- @storybook/react-webpack5
- storybook
Also removed deprecated @storybook/addons package.
Note: ws (HIGH) vulnerability persists via @storybook/core@8.6.14 → ws@8.14.2.
The vulnerability requires ws@8.17.1+, but Storybook 8.6.14 uses ws@8.14.2.
Further action needed to resolve this.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: replace storybook-deployer with GitHub Pages Actions
Replaced deprecated @storybook/storybook-deployer with GitHub's native
Pages deployment actions. This removes the CRITICAL parse-url vulnerability
(CVE-2024-XXXXX via git-url-parse → git-up → parse-url).
Changes:
- Updated .github/workflows/show.yml to use GitHub Pages Actions:
- actions/configure-pages@v4
- actions/upload-pages-artifact@v3
- actions/deploy-pages@v4
- Removed @storybook/storybook-deployer from devDependencies
- Added required permissions and concurrency controls
- Added workflow_dispatch for manual triggers
BREAKING CHANGE: Requires one-time manual setup in GitHub Pages settings.
After merging, change Pages source from "Deploy from a branch" to
"GitHub Actions" at: Settings → Pages → Build and deployment → Source
Security impact:
- Eliminates 1 CRITICAL vulnerability (parse-url SSRF)
- Reduces total vulnerabilities from 25 to ~16
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* simplify show
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 963f70b commit de720d6
3 files changed
Lines changed: 537 additions & 811 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
6 | 16 | | |
7 | 17 | | |
8 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
9 | 22 | | |
10 | 23 | | |
11 | 24 | | |
| |||
14 | 27 | | |
15 | 28 | | |
16 | 29 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
| |||
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
112 | | - | |
| 110 | + | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
| |||
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
127 | | - | |
| 125 | + | |
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
| |||
0 commit comments