Read 2026-11-08
vitejs/vite: technical due diligence, read from its repository
What Borehole read in vitejs/vite's code and history at bc598a6: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
.github/PULL_REQUEST_TEMPLATE.md:16: states a policy on AI-generated contributions
Architecture & Codebase — including AI provenance
strongpackages/vite/src/node/plugins/css.ts is 3,686 lines, 409× this codebase's median file
adequateThe median source file here is 9 lines. 13 files exceed 1,000 lines, the largest being 3,686. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.
packages/vite/src/node/plugins/css.ts:1 — 3,686 lines (409× median) |
packages/vite/src/node/config.ts:1 — 2,962 lines (329× median) |
packages/vite/src/node/utils.ts:1 — 2,022 lines (224× median) |
packages/vite/src/node/build.ts:1 — 1,987 lines (220× median) |
packages/vite/src/node/plugins/html.ts:1 — 1,754 lines (194× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
strong8 files still carry code deprecated more than two years ago
adequate8 files were marked deprecated over two years ago and still are, the oldest since Jan 2021. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
packages/vite/src/node/optimizer/index.ts — deprecated since Jan 2021 |
packages/vite/src/node/build.ts — deprecated since Jan 2021 |
packages/vite/src/node/config.ts — deprecated since Feb 2021 |
packages/vite/types/importGlob.d.ts — deprecated since Jan 2024 |
packages/vite/src/node/server/hmr.ts — deprecated since Sep 2024 |
Security & Reliability Posture
adequate25 advisories against this project in the last 24 months, 6 high or critical, 1 on CISA's known-exploited list, 3 may affect the surveyed commit
adequate1 of them is on CISA's known-exploited list: check first whether the release you run has the fix. The newest was published on 2026-10-21. 3 may affect the surveyed version, placed from version numbers. Check each against the release you run. The record is incomplete: NVD: 27 records name vite with nothing tying them to this repository (CVE-2025-32642, CVE-2025-57753, CVE-2025-59140, …).
| 2025-03-31: GHSA-4r4m-qw57-chr8 (moderate; on CISA's Known Exploited list), fixed in 4.5.11: Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query |
| 2026-10-21: GHSA-8g5g-mxqh-grgj (moderate), fixed in 6.4.5: Vite: `server.fs.deny` bypassed with queries |
| 2026-10-20: GHSA-587h-7wmj-h5pm (high), fixed in 8.3.3: launch-editor: `fs.existsSync()` existence check can be bypassed on Windows |
| 2026-10-20: GHSA-698v-4r3x-3vcv (moderate), fixed in 8.3.3: launch-editor: escapeCmdArgs() omits % escaping on Windows |
| 2026-10-20: GHSA-r825-w8mm-5pxw (moderate), fixed in 8.3.3: launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors |
Observability & Operations
adequateNo telemetry or error reporting is wired in anywhere
adequateNone of 2,299 readable files references an instrumentation, metrics or error-reporting library. If this system is in production, nobody learns that it broke from the system itself — they learn it from a customer. That is a reliability finding before it is an observability one.
| searched 2,299 tracked text files for 16 known instrumentation libraries; manifests for metrics, tracing and error-reporting families; locked dependencies for the packages that emit; 0 matched |
No structured logging library is in use
adequateNothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.
| searched 2,299 files for 10 structured logging libraries; 0 matched |
One request cannot be followed through the logs
adequateNothing in the service carries a request or correlation id, and there is no tracing. When a customer reports a failure, the log lines that belong to their request cannot be picked out from everyone else's.
| no request id, correlation id or tracing found |
No error reporter is wired in
adequateNothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.
| no error reporter initialised |
The code branches on the environment's name at 26 places
adequate26 places outside configuration test whether they are running in production or staging. Staging then does not exercise production's code, and each deploy is the first run of those branches. Differences belong in configuration the code reads, not in the code.
packages/vite/src/node/external.ts:51 — branch on the environment name |
packages/vite/src/node/idResolver.ts:67 — branch on the environment name |
packages/vite/src/node/idResolver.ts:67 — branch on the environment name |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on vitejs/vite: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.