pnpm audit returns vulnerabilities
### Describe the bug
Running `pnpm audit` returns the following:
```
┌─────────────────────┬────────────────────────────────────────────────────────┐
│ low │ Vite middleware may serve files starting with the same │
│ │ name with the public directory │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Package │ vite │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Vulnerable versions │ >=7.1.0 <=7.1.4 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Patched versions │ >=7.1.5 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Paths │ .>vitest>vite │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ More info │ https://github.com/advisories/GHSA-g4jq-h2w9-997c │
└─────────────────────┴────────────────────────────────────────────────────────┘
┌─────────────────────┬────────────────────────────────────────────────────────┐
│ low │ Vite's `server.fs` settings were not applied to HTML │
│ │ files │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Package │ vite │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Vulnerable versions │ >=7.1.0 <=7.1.4 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Patched versions │ >=7.1.5 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Paths │ .>vitest>vite │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ More info │ https://github.com/advisories/GHSA-jqfw-vq24-v9c3 │
└─────────────────────┴────────────────────────────────────────────────────────┘
```
Expected: returns no security vulnerabilities
### Reproduction
run `pnpm audit` in taze
### System Info
```Shell
┌─────────────────────┬────────────────────────────────────────────────────────┐
│ low │ Vite middleware may serve files starting with the same │
│ │ name with the public directory │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Package │ vite │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Vulnerable versions │ >=7.1.0 <=7.1.4 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Patched versions │ >=7.1.5 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Paths │ .>vitest>vite │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ More info │ https://github.com/advisories/GHSA-g4jq-h2w9-997c │
└─────────────────────┴────────────────────────────────────────────────────────┘
┌─────────────────────┬────────────────────────────────────────────────────────┐
│ low │ Vite's `server.fs` settings were not applied to HTML │
│ │ files │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Package │ vite │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Vulnerable versions │ >=7.1.0 <=7.1.4 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Patched versions │ >=7.1.5 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Paths │ .>vitest>vite │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ More info │ https://github.com/advisories/GHSA-jqfw-vq24-v9c3 │
└─────────────────────┴────────────────────────────────────────────────────────┘
```
### Used Package Manager
pnpm
### Validations
- [x] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)
- [x] Read the [Contributing Guide](https://github.com/antfu/contribute).
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [x] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
### Contributions
- [ ] I am willing to submit a PR to fix this issue
- [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
关闭于 2025-09-12 1 条评论