Read 2026-11-08
withastro/astro: technical due diligence, read from its repository
What Borehole read in withastro/astro's code and history at 3f3d580: 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
- Releases are cut from another branch than the one surveyed
Architecture & Codebase — including AI provenance
strongpackages/astro/src/types/public/config.ts is 3,657 lines, 121× this codebase's median file
adequateThe median source file here is 30 lines. 7 files exceed 1,000 lines, the largest being 3,657. 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/astro/src/types/public/config.ts:1 — 3,657 lines (121× median) |
packages/astro/src/core/errors/errors-data.ts:1 — 2,295 lines (76× median) |
packages/astro/astro-jsx.d.ts:1 — 1,573 lines (52× median) |
packages/language-tools/language-server/types/astro-jsx.d.ts:1 — 1,498 lines (49× median) |
packages/astro/src/core/fetch/fetch-state.ts:1 — 1,275 lines (42× median) |
Engineering Process & SDLC Maturity
strongTests are retried until they pass
adequateThe suite is configured to retry failing tests (packages/astro/playwright.config.js). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.
packages/astro/playwright.config.js:16 — test retry |
Product & Engineering Maturity
strong5 files still carry code deprecated more than two years ago
adequate5 files were marked deprecated over two years ago and still are, the oldest since Apr 2022. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
packages/astro/astro-jsx.d.ts — deprecated since Apr 2022 |
packages/astro/src/core/errors/errors-data.ts — deprecated since Jun 2023 |
packages/astro/client.d.ts — deprecated since Aug 2023 |
packages/astro/src/core/app/node.ts — deprecated since Nov 2023 |
packages/astro/src/types/public/context.ts — deprecated since Aug 2024 |
Releases are cut from another branch than the one surveyed
adequateThe newest pre-release, astro@7.4.0-beta.1, is not on the branch this survey read; the newest release on it is astro@7.3.5. The shipped product may differ from what this report describes. Survey the release branch too.
| tag astro@7.4.0-beta.1 |
Security & Reliability Posture
adequate1 credential-shaped string added in the history sit in tests, examples, documentation or local development settings
adequateStrings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key.
| private key block, where fakes are usual |
22 places insert HTML from a variable without sanitising it
adequate22 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.
packages/astro/src/core/errors/overlay.ts:619 — HTML from a variable |
packages/astro/src/core/errors/overlay.ts:696 — HTML from a variable |
packages/astro/src/core/errors/overlay.ts:731 — HTML from a variable |
1 vendored component with no licence
adequateThird-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.
scripts/deps/update-example-versions.js — 1 tracked files, no licence file |
50 advisories against this project in the last 24 months, 10 high or critical, 2 may affect the surveyed commit
adequateThe newest was published on 2026-10-28. 2 may affect the surveyed version, placed from version numbers. Check each against the release you run. The record is incomplete: NVD: 8 records name astro with nothing tying them to this repository (CVE-2014-5659, CVE-2018-7180, CVE-2023-50249, …).
| 2026-10-28: GHSA-f4j9-crrj-867q (moderate), fixed in 9.1.2: Reflected XSS via unescaped slot names in @astrojs/svelte |
| 2026-10-28: GHSA-jmv2-qgxf-f995 (moderate), fixed in 7.1.2: Reflected XSS via unescaped slot names in @astrojs/solid-js |
| 2026-10-28: GHSA-ff38-p3qj-4pmf (moderate), fixed in 2.1.2: XSS via unescaped code for unsupported languages in @astrojs/prism |
| 2026-10-12: GHSA-98hj-9722-w3j8 (moderate), fixed in 7.3.2: Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering |
| 2026-10-12: GHSA-mpr7-6m5w-76rw (low), fixed in 7.3.3: Astro: Arbitrary CSS injection in Astro View Transitions |
Observability & Operations
adequateNo 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 4,487 files for 10 structured logging libraries; 0 matched |
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 |
Has a reporting host, telemetry.astro.build; its default could not be read
adequatepackages/telemetry/src/post.ts names telemetry.astro.build as a place to report to, and no setting read here shows whether reporting is on as shipped. For a buyer running it inside their own product, ask whether copies report by default, what is sent, how often, and whether the buyer's customers were told.
packages/telemetry/src/post.ts:1 — names telemetry.astro.build |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on withastro/astro: 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.