Vulnerabilities · 2023 · Vitejs
CVE-2023-34092
Vitejs Vite vulnerability
Vite provides frontend tooling. Prior to versions 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, and 4.3.9, 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}']`). 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. This issue is fixed in [email protected], [email protected], [email protected], [email protected], [email protected], and [email protected].
Affected products
Vite. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vitejs Vite runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/vitejs/vite/security/advisories/GHSA-353f-5xf4-qw67 · Exploit
- github.com/vitejs/vite/commit/813ddd6155c3d54801e264ba832d8347f6f66b32 · Patch
- github.com/vitejs/vite/pull/13348 · Patch
- nvd.nist.gov/vuln/detail/CVE-2023-34092
- security.snyk.io/package/npm/vite/3.2.0-beta.4
- github.com/advisories/GHSA-353f-5xf4-qw67
- nvd.nist.gov/vuln/detail/CVE-2023-34092
- cve.org/CVERecord?id=CVE-2023-34092
More vulnerabilities in Vitejs products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.