← Back to scan
File as GitHub Issue repo: vitejs/vite

Push this scan report to vitejs/vite

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Async function without await — fire-and-forget Promise (AI mistake)

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… playground/ssr-deps/require-absolute/in…:3
CRIT MINED035 [MINED035] Js New Function: new Function(...) compiles strings to functions. packages/vite/src/node/ssr/ssrStacktrac…:13
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/vite/src/node/plugins/wasm.ts:134
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/vite/src/node/plugins/prepareO…:15
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/vite/src/node/packages.ts:58
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/vite/src/node/plugins/define.ts:92
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/vite/src/node/plugins/assetImp…:66
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/vite/src/node/optimizer/resolv…:87
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/vite/src/module-runner/evaluat…:117
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/vite/src/client/overlay.ts:272
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/vite/rolldown.config.ts:252
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/vite/src/module-runner/evaluat…:25
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/vite/rollupLicensePlugin.ts:177
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/vite/rolldown.config.ts:365
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/create-vite/template-vanilla/s…:5
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/create-vite/template-vanilla-t…:7
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/create-vite/template-vanilla-t…:5
HIGH SEC006 [SEC006] XSS Risk: Direct HTML injection without sanitization. packages/create-vite/template-vanilla-t…:7
HIGH SEC006 [SEC006] XSS Risk: Direct HTML injection without sanitization. playground/css-codesplit/shared-css-mai…:2
HIGH MINED122 package.json dep `@vitejs/test-dep-not-js` pulled from URL/Git playground/optimize-deps/package.json:1
HIGH MINED122 package.json dep `@vitejs/test-dep-node-env` pulled from URL/Git playground/optimize-deps/package.json:1
HIGH MINED122 package.json dep `@vitejs/test-dep-linked-include` pulled from URL/Git playground/optimize-deps/package.json:1
HIGH MINED122 package.json dep `@vitejs/test-dep-linked` pulled from URL/Git playground/optimize-deps/package.json:1
HIGH MINED122 package.json dep `@vitejs/test-dep-incompatible` pulled from URL/Git playground/optimize-deps/package.json:1
HIGH MINED122 package.json dep `@vitejs/test-dep-css-require` pulled from URL/Git playground/optimize-deps/package.json:1
HIGH MINED122 package.json dep `@vitejs/longfilename-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa… playground/optimize-deps/package.json:1
HIGH MINED122 package.json dep `@vitejs/test-dep-source-map-no-sources` pulled from URL/Git playground/optimize-deps/package.json:1
HIGH MINED122 package.json dep `@vitejs/test-dep-no-discovery` pulled from URL/Git playground/optimize-deps-no-discovery/p…:1
HIGH MINED122 package.json dep `aliased-module` pulled from URL/Git playground/alias/package.json:1
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. packages/vite/src/node/server/environme…:375
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/vite/src/module-runner/evaluat…:117
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/vite/src/client/overlay.ts:272
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/vite/rolldown.config.ts:252
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… packages/create-vite/template-preact-ts…:44
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… packages/create-vite/template-lit/src/m…:63
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… packages/create-vite/template-lit-ts/sr…:57
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED AGT012 Agent control bridge may listen on a network interface without visible auth packages/vite/src/node/utils.ts:8
MED AGT012 Agent control bridge may listen on a network interface without visible auth packages/vite/src/node/server/index.ts:78
MED WEB015 Public web app has no Content Security Policy index.html
LOW AIC003 Duplicated implementation block across source files playground/multiple-entrypoints/entrypo…:16
LOW AIC003 Duplicated implementation block across source files playground/multiple-entrypoints/entrypo…:17
LOW AIC003 Duplicated implementation block across source files playground/multiple-entrypoints/entrypo…:18
LOW AIC003 Duplicated implementation block across source files playground/multiple-entrypoints/entrypo…:27
LOW AIC003 Duplicated implementation block across source files playground/hmr/vite.config.ts:88
LOW AIC003 Duplicated implementation block across source files playground/fs-serve/root/vite.config.js:13
LOW AIC003 Duplicated implementation block across source files playground/css/vite.config-relative-bas…:1
LOW AIC003 Duplicated implementation block across source files playground/assets/vite.config-url-base.…:14
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-vue/src/c…:21
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-vue/src/c…:2
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-vue-ts/sr…:21
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-vanilla/s…:16
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-svelte/sr…:37
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-svelte/sr…:1
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-svelte-ts…:37
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-solid/src…:30
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-solid/src…:28
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-solid/src…:1
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-solid-ts/…:30
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-solid-ts/…:28
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-react/src…:1
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-qwik/src/…:26
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-qwik/src/…:24
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-qwik/src/…:1
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-qwik-ts/s…:26
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-qwik-ts/s…:24
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-preact/sr…:28
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-preact/sr…:1
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-preact-ts…:28
LOW AIC003 Duplicated implementation block across source files packages/create-vite/template-lit/src/m…:27
LOW WEB002 Public web app has no sitemap sitemap.xml
LOW WEB008 Public docs site has no llms.txt llms.txt
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED089 [MINED089] Js Always False If: if (false) — branch never taken. Dead code / disabled feat… playground/optimize-deps/dep-linked-inc…:15
INFO MINED065 [MINED065] Cors Wildcard: Access-Control-Allow-Origin: * exposes the API to any browser o… packages/vite/src/node/index.ts:138
INFO MINED065 [MINED065] Cors Wildcard: Access-Control-Allow-Origin: * exposes the API to any browser o… packages/vite/src/node/http.ts:103
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … packages/vite/rollupLicensePlugin.ts:111
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … packages/vite/rolldown.config.ts:272
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … packages/plugin-legacy/src/snippets.ts:26
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… playground/proxy-bypass/vite.config.js:16
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/create-vite/tsdown.config.ts:143
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/vite/scripts/benchCircularImpo…:59
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/plugin-legacy/src/snippets.ts:3
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/create-vite/template-vanilla-t…:7
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/vite/src/module-runner/sourcem…:62
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/vite/src/module-runner/createI…:6
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. docs/.vitepress/theme/index.ts:18
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/vite/src/module-runner/evaluat…:17
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. docs/_data/blog.data.ts:21
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. docs/.vitepress/theme/index.ts:22
Reset to top 5 90 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `vitejs/vite`

**Score: 66/100 (B+)**  ·  90 findings  ·  scanned 2026-05-31 01:26 UTC  ·  97,854 LOC

| Severity | Count |
|---|---|
| CRITICAL | 2 |
| HIGH | 27 |
| MEDIUM | 11 |
| LOW | 33 |

📊 [Full filterable report](https://repobility.com/scan/ce0b060e-269d-4cad-aeaf-986153a5541a/)  ·  ![scorecard](https://repobility.com/scan/ce0b060e-269d-4cad-aeaf-986153a5541a/report.png?v=1780190773-s2)

### Top findings

1. **CRITICAL** `SEC084` — JS: require() with non-literal
   `playground/ssr-deps/require-absolute/index.js:3`
2. **CRITICAL** `MINED035` — Js New Function
   `packages/vite/src/node/ssr/ssrStacktrace.ts:13` · CWE-95 · ✓ Repobility
3. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `packages/vite/src/node/plugins/wasm.ts:134`
4. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `packages/vite/src/node/plugins/prepareOutDir.ts:15`
5. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `packages/vite/src/node/packages.ts:58`

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/ce0b060e-269d-4cad-aeaf-986153a5541a/_
Already filed
'vitejs' is on the known-megaproject org list. These projects use auto-triage bots and established security disclosure channels. Unsolicited automated issues from Repobility would be perceived as AI-generated spam. For security findings, follow the project's SECURITY.md policy. For non-security findings, open a focused PR or community discussion instead.
Already filed
This repo publishes a SECURITY.md policy and the scan contains 19 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'vitejs/vite' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.