Commit a95c3dc
Fix npm security vulnerabilities (#327)
# Fix npm security vulnerabilities
This PR addresses security vulnerabilities identified by `npm audit`.
## Fixed Vulnerabilities ✅
### High Severity
- **axios DoS vulnerability** (GHSA-4hjh-wcwx-xvwj)
- Fixed by updating to axios >=1.12.0
- Resolves DoS attack vulnerability through lack of data size check
### Moderate/Low Severity
- **Vite file serving vulnerabilities**
- GHSA-g4jq-h2w9-997c: Middleware may serve files with same name prefix
- GHSA-jqfw-vq24-v9c3: `server.fs` settings not applied to HTML files
- Fixed by updating Vite to secure version
## Deferred Vulnerabilities ⏳
The following vulnerabilities are **not addressed** in this PR:
### prismjs DOM Clobbering (Moderate Severity)
- **Issue**: GHSA-x7hr-w5r2-h6wg - PrismJS DOM Clobbering vulnerability
- **Affected**: `react-syntax-highlighter` package dependencies
- **Status**: **Requires upstream fix** - dependency chain needs
react-syntax-highlighter major version update
- **Impact**: Breaking changes would be introduced (v15→v5 downgrade)
### tmp Symbolic Link Vulnerability (Low Severity)
- **Issue**: GHSA-52f5-9888-hmc6 - Arbitrary file/directory write via
symbolic link
- **Affected**: `patch-package` dependency
- **Status**: **No fix available** - no alternative version or
workaround exists
- **Impact**: Low risk, limited to patch-package usage context
## Summary
- ✅ **2 vulnerabilities fixed** (1 high, 1 moderate/low)
- ⏳ **3 vulnerabilities deferred** (3 moderate/low) - require upstream
fixes or have no available solutions
- 🔄 **Net improvement**: Reduced from 7 to 5 total vulnerabilities
## Testing
- [x] `npm install` runs successfully
- [x] `npm audit` confirms remaining vulnerabilities are
expected/documented
- [x] No breaking changes introduced
<!-- DO NOT EDIT: System generated metadata -->
<!-- WORKER_ID:1758846494823719 -->
---
**Open in Web UI**:
https://d2c09i1k2ray87.cloudfront.net/sessions/1758846494823719
---------
Co-authored-by: remote-swe-app[bot] <123456+remote-swe-app[bot]@users.noreply.github.com>1 parent e0ee252 commit a95c3dc
2 files changed
+24
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| 59 | + | |
| 60 | + | |
51 | 61 | | |
52 | 62 | | |
53 | 63 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments