Borehole · Project · free tier
frappe/erpnext
Free reading: not for reliance
043f5b6 · 50,000 commits · 5,854 files
Read 2026-10-22

frappe/erpnext: technical due diligence, read from its repository

What Borehole read in frappe/erpnext's code and history at 043f5b6: 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

What the repository says

  • Releases are cut from another branch than the one surveyed

Architecture & Codebase — including AI provenance

strong
01.6

erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py is 3,970 lines, 136× this codebase's median file

adequate

The median source file here is 29 lines. 74 files exceed 1,000 lines, the largest being 3,970. 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
erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py:1 — 3,970 lines (136× median)
erpnext/public/js/controllers/transaction.js:1 — 3,530 lines (121× median)
erpnext/accounts/doctype/payment_entry/payment_entry.py:1 — 3,375 lines (116× median)
erpnext/stock/stock_ledger.py:1 — 3,254 lines (112× median)
erpnext/accounts/utils.py:1 — 2,905 lines (100× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, v16.52.1, is not on the branch this survey read; the newest release on it is v13.9.0. The shipped product may differ from what this report describes. Survey the release branch too. This was read from the most recent 50,000 commits (12 Apr 2016 to 22 Oct 2026) only; older history was not read.

Evidence
tag v16.52.1

Security & Reliability Posture

strong
05.25

1 environment file is committed

adequate

banking/.env.production is tracked in git. Environment files are where credentials usually live, and committing one usually means nobody decided how secrets reach the running application. Whatever is in it is in the history for good. Check 05.1 says whether it holds anything credential-shaped.

Evidence
banking/.env.production — committed environment file
05.27

The build runs third-party code it does not pin

adequate

4 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 1 step pipes a download straight into a shell. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.

Evidence
.github/workflows/initiate_release.yml:32 — action pinned by tag
.github/workflows/lock.yml:17 — action pinned by tag
.oss-scanner/Dockerfile:41 — download piped into a shell
05.26

8 locked dependencies have published vulnerabilities, 19 high or critical

adequate

8 of 457 locked dependencies match 32 published advisories in OSV, 19 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. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.

Evidence
banking/yarn.lock — axios 1.18.1: GHSA-3pq3-5fj3-cg6v (high), fixed in 1.20.0
banking/yarn.lock — brace-expansion 5.0.7: GHSA-6j4f-fj2g-mc7p (high), fixed in 5.0.10
banking/yarn.lock — brace-expansion 5.0.9: GHSA-6j4f-fj2g-mc7p (high), fixed in 5.0.10
05.48

8 places insert HTML from a variable without sanitising it

adequate

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

05.65

183 advisories against this project in the last 24 months, 102 high or critical

adequate

The newest was published on 2026-10-12. 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 165 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 13.9.0. Answer lives in: the release you run, set against each fixed version. GHSA-5wpj-6rvp-9ff7 (high), GHSA-3x6c-gc4v-f5v8 (moderate), GHSA-qq49-v74j-hjh7 (critical) and 4 more are fixed in the surveyed commit; which release carries them cannot be told from this history, which does not place the release users run. Answer lives in: the version you run. The record is incomplete: NVD: 20 records name erpnext with nothing tying them to this repository (CVE-2018-3882, CVE-2018-3883, CVE-2018-3884, …).

Evidence
2026-10-12: CVE-2026-109376 (moderate): ERPNext 15.55.0 through 16.50.0 contains an incorrect authorization vulnerability in the get_timesheet_html method that lets authenticated portal users view pro
2026-10-12: CVE-2026-109377 (moderate): ERPNext 9.0.0 through 16.50.0 contains a missing authorization vulnerability that allows authenticated users to view stock quantities via whitelisted batch meth
2026-10-12: CVE-2025-71432 (high): Frappe ERPNext before 14.92.1 and 15.x before 15.83.0 contains a reflected cross-site scripting vulnerability due to missing input validation on a certain page,
2026-10-12: CVE-2026-109604 (high): Frappe ERPNext before 15.112.0 and 16.x before 16.23.0 contains a stored cross-site scripting vulnerability because a tool view interpolates stored record names
2026-10-12: CVE-2026-109608 (high): Frappe ERPNext before 15.121.0 and 16.x before 16.34.0 contains an SQL injection vulnerability in several endpoints that lack input validation. Any authenticate

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 frappe/erpnext: 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.