Borehole · Project · free tier
pallets/flask
Free reading: not for reliance
d73fa1c · 5,557 commits · 236 files
Read 2026-10-04

pallets/flask: technical due diligence, read from its repository

What Borehole read in pallets/flask's code and history at d73fa1c: 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 Posturestrong
Observability & Operationsnot assessable
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

strong
01.6

src/flask/app.py is 1,629 lines, 20× this codebase's median file

adequate

The median source file here is 78 lines. 3 files exceed 1,000 lines, the largest being 1,629. 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
src/flask/app.py:1 — 1,629 lines (20× median)
src/flask/cli.py:1 — 1,128 lines (14× median)
src/flask/sansio/app.py:1 — 1,014 lines (13× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong
04.5

Effort is shifting from building to rewriting

adequate

Deleted lines per line added rose from 0.53 to 0.88 between the first and second halves of this history. Rework is normal and often healthy, but a rising ratio means an increasing share of the team's time is spent replacing code that already exists rather than building what does not. Whether that is deliberate repayment or churn is a question for the team.

Evidence
first half 0.53, second half 0.88 (split 2018-06-23)

Security & Reliability Posture

strong
05.26

3 locked dependencies have published vulnerabilities, 6 high or critical

adequate

3 of 83 locked dependencies match 8 published advisories in OSV, 6 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version. None of the high or critical ones is in what the product ships: they are development dependencies.

Evidence
uv.lock — cryptography 49.0.0: GHSA-g6cj-pr64-35w5 (high), fixed in 50.0.0; a development dependency
uv.lock — urllib3 2.7.0: GHSA-8988-9cw3-xx77 (high), fixed in 2.8.0; a development dependency
uv.lock — virtualenv 21.7.1: GHSA-94p9-xgh2-xp45 (high), fixed in 21.7.12; a development dependency
05.65

3 advisories against this project in the last 24 months

adequate

The newest was published on 2026-07-20. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 1 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 3.1.3. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 62 records name flask with nothing tying them to this repository (CVE-2008-3687, CVE-2016-1000001, CVE-2018-16516, …).

Evidence
2026-07-20: CVE-2026-46715 (moderate): Flask-Security-Too allows users to add security features to their Flask applicationa. Version 5.8.0's OAuth reauthentication flow can mark a session as fresh af
2026-02-19: GHSA-68rp-wp8r-4726 (low), fixed in 3.1.3: Flask session does not add `Vary: Cookie` header when accessed in some ways
2025-05-13: GHSA-4grg-w6v8-c28g (low), fixed in 3.1.1: Flask uses fallback key instead of current signing key

Observability & Operations

not assessable

Not rated: only 5 of 16 checks could reach a conclusion here; the rest do not apply to this repository or could not read it.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on pallets/flask: 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.