Borehole · Project · free tier
vitejs/vite
Free reading: not for reliance
bc598a6 · 9,709 commits · 2,837 files
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.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • .github/PULL_REQUEST_TEMPLATE.md:16: states a policy on AI-generated contributions

Architecture & Codebase — including AI provenance

strong
01.6

packages/vite/src/node/plugins/css.ts is 3,686 lines, 409× this codebase's median file

adequate

The 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.

Evidence
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

strong

No finding.

Product & Engineering Maturity

strong
04.38

8 files still carry code deprecated more than two years ago

adequate

8 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.

Evidence
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

adequate
05.65

25 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

adequate

1 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, …).

Evidence
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

adequate
06.1

No telemetry or error reporting is wired in anywhere

adequate

None 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.

Evidence
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
06.2

No structured logging library is in use

adequate

Nothing 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.

Evidence
searched 2,299 files for 10 structured logging libraries; 0 matched
06.8

One request cannot be followed through the logs

adequate

Nothing 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.

Evidence
no request id, correlation id or tracing found
06.9

No error reporter is wired in

adequate

Nothing 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.

Evidence
no error reporter initialised
06.17

The code branches on the environment's name at 26 places

adequate

26 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.

Evidence
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 assessable

Not 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.