vite-plugin-dart
vite-plugin-dart copied to clipboard
chore(deps): update dependency vite to v4.1.5 [security]
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| vite (source) | 4.1.1 -> 4.1.5 |
GitHub Vulnerability Alerts
CVE-2023-34092
Summary
Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//) allows any unauthenticated user to read file from the Vite root-path of the application including the default fs.deny settings (['.env', '.env.*', '*.{crt,pem}'])
Impact
Only users explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected, and only files in the immediate Vite project root folder could be exposed.
Patches
Fixed in [email protected], [email protected], [email protected], [email protected] And in the latest minors of the previous two majors: [email protected], [email protected]
Details
Vite serve the application with under the root-path of the project while running on the dev mode. By default, vite using server options fs.deny to protected the sensitive information of the file. But, with simply double forward-slash, we can bypass this fs restriction.
PoC
- Create a new latest project of vite using any package manager. (here I'm using react and vue templates for tested and pnpm)
- Serve the application on dev mode using pnpm run dev.
- Directly access the file from url using double forward-slash (
//) (e.g://.env,//.env.local) - Server Options
fs.denyrestrict successfully bypassed.
Proof Images:

Release Notes
vitejs/vite
v4.1.5
Please refer to CHANGELOG.md for details.
v4.1.4
- fix(define): should not stringify vite internal env (#12120) (73c3999), closes #12120
- docs: update rollup docs links (#12130) (439a73f), closes #12130
v4.1.3
- fix: catch and handle websocket error (#11991) (#12007) (4b5cc9f), closes #11991 #12007
- fix: do not append version query param when scanning for dependencies (#11961) (575bcf6), closes #11961
- fix(css): handle pure css chunk heuristic with special queries (#12091) (a873af5), closes #12091
- fix(esbuild): umd helper insert into wrong position in lib mode (#11988) (86bc243), closes #11988
- fix(html): respect disable modulepreload (#12111) (6c50119), closes #12111
- fix(html): rewrite assets url in
<noscript>(#11764) (1dba285), closes #11764 - feat(preview): improve error when build output missing (#12096) (a0702a1), closes #12096
- feat(ssr): add importer path to error msg when invalid url import occur (#11606) (70729c0), closes #11606
v4.1.2
- fix: correct access to
crossOriginattribute (#12023) (6a0d356), closes #12023 - fix: narrow defineConfig return type (#12021) (18fa8f0), closes #12021
- fix(define): inconsistent env values in build mode (#12058) (0a50c59), closes #12058
- fix(env): compatible with env variables ended with unescaped $ (#12031) (05b3df0), closes #12031
- fix(ssr): print file url in
ssrTransformparse error (#12060) (19f39f7), closes #12060 - revert: narrow defineConfig return type (#12077) (54d511e), closes #12077
- feat: support
import.meta.hot?.accept(#12053) (081c27f), closes #12053 - chore: add jsdoc default value (#11746) (8c87af7), closes #11746
- chore: fix typos (#12032) (ee1a686), closes #12032
- chore(deps): update dependency strip-literal to v1 (#12044) (5bd6c0a), closes #12044
- chore(pluginContainer): simplify error position judge condition (#12003) (e3ef9f4), closes #12003
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| vite-plugin-dart | ❌ Failed (Inspect) | Jun 6, 2023 4:21am |