Frappe/ERPNext coordinated wave¶
Source: GitHub Security Advisories published 2026-10-13 00:31Z, a coordinated CNA-import wave of ~70 GHSAs against Frappe Framework 15.x/16.x and ERPNext 15.x/16.x (fix bands spread across 15.98-15.121.3 and 16.6-16.35.0, the advisory set itself is a per-patch history map), plus Frappe Suite mail (get_mailboxes/get_quota) and a Frappe pdfkit dependency leg.
Why this is worth an operator page. Frappe/ERPNext is the most-deployed open-source ERP you've never scoped: self-hosted manufacturing/retail ERPs, NGO back-offices, and a public bug-bounty program, almost always with at least one trial/demo instance exposed. Frappe's architecture makes the whole wave replayable as one audit kit: every Python method decorated @frappe.whitelist() becomes a callable HTTP endpoint under /api/method/<dotted.path>, permission enforcement is a per-method opt-in (frappe.has_permission / validate hooks) rather than a route-level default, and templates are Jinja rendered server-side across notifications, print formats, and communication fields. Roughly 30 of these advisories are the same sentence, "certain endpoints fail to enforce proper authorization checks", which is the vendor publicly inventorying its own ungated whitelisted methods. Read the wave as an attack map, not 70 CVEs.
Boundary map (legs with substantive descriptions)¶
| GHSA / CVE | CVSS | Surface | Boundary crossed |
|---|---|---|---|
| GHSA-f3v4-m95v-25ch / CVE-2026-109667 | 8.8 | Record-creation endpoint | Record type taken from the request, inserted with permission checks disabled, any authenticated user (even zero roles) supplies a privileged record type to create privileged accounts → full site takeover |
| GHSA-cw68-6fr5-c994 / CVE-2026-109652 | 8.8 | User-controlled message fields → template rendering | SSTI in an unrestricted (non-sandboxed) context: template expressions read/write arbitrary database data, delete documents, make outbound requests, and send mail from the site |
| GHSA-59gg-p7mc-h3g6 / CVE-2026-109608 | 8.8 | Several endpoints, no input validation | SQLi reachable by any authenticated user including one with no assigned roles; read other users' data, escalate to a privileged account |
| GHSA-w3h8-9m75-6p69 / CVE-2026-109640 | 8.1 | Record-modify endpoints without authz checks | Any authenticated user modifies records beyond role (fixed 16.22.0) |
| GHSA-rcfr-6r59-hm5x / CVE-2026-109633 | 8.1 | Public-facing booking page | Unauthenticated stored XSS: crafted content stored raw, rendered as raw HTML in a privileged user's session → act as that user, account takeover |
| GHSA-g24j-j8m9-65fg / CVE-2026-109621 | 6.5 | Party-record read endpoint | Honours a caller-supplied flag that disables the endpoint's own permission enforcement, set the flag, read party records beyond role |
| GHSA-r69h-vwpx-6874 / CVE-2026-109651 | 4.3 | Configuration field writable by common operational roles | SSRF: field accepts an arbitrary outbound destination with no validation, server requests hosts only reachable inside the deployment network |
| GHSA-3cf9-2fpp-3v7v / CVE-2026-109601 | 6.5 | Outgoing email HTML attributes | Arbitrary file read: an attribute value referencing a local file path in outgoing email HTML exposes server files to whoever receives the mail |
| GHSA-8q8g-5ghh-6f67 / CVE-2026-109675 | 4.3 | Frappe Suite get_mailboxes / get_quota (JMAP) | IDOR: supply another user's JMAP account ID to read their mailbox names, message counts, automation rules (incl. sender addresses), and quota |
| GHSA-h2g2-w3jw-9f6h / CVE-2026-109602 | 5.4 | Dashboard chart filters | Stored XSS, jQuery renders entered filter values as rich text in other viewers' browsers |
| GHSA-8q9q-vqwh-rpm8 / CVE-2026-109603 | 3.3 | PDF generation via vulnerable pdfkit (CVE-2025-26240) | SSRF + local file inclusion through crafted content into PDF rendering, internal resources fetched, local server files embedded in the generated PDF (readable by the requester) |
Plus ~30 further "missing authorization" legs in the same band (document create/read/modify/status verbs beyond role: GHSA-mpfp-cmm2-68pc document status, GHSA-9964-cw4f-c96r document creation, GHSA-8pxf-9hmp-wv7f data read, GHSA-vc8c-vcg7-x76v master data, GHSA-242p-xjhp-68jh financial records read, GHSA-frwq-f3qm-frf9/GHSA-gqg9-2w62-58r8/GHSA-pv62-434m-g9vq/GHSA-59gg-p7mc-h3g6 SQLi singles, stored-XSS singles GHSA-82qc-4rqg-p3g8/GHSA-24f3-935v-8wmm/GHSA-g9jx-m3gp-q3jv/GHSA-q3p4-7c35-89wj/GHSA-frw3-f8vj-wxg9), recorded here as inventory; the audit kit below covers all of them.
The whitelisted-method surface is the whole game¶
Frappe exposes any @frappe.whitelist()-decorated method as POST /api/method/<app>.<module>.<file>.<method> (and short-alias forms). Authorization is expected to live inside the method, there is no route-level default-deny. This wave is ~30 advisories saying "this method didn't."
Operator audit kit (works on any Frappe/ERPNext instance you're authorized to test, and generalizes to every framework that auto-exposes annotated functions as RPC):
- Enumerate the callable surface. On an accessible instance, list routes via the API (
/api/method/frappe.desk.clientfamily,/api/v2docs) and, when you have source (open-source = public source, always diff it), grep@frappe.whitelistincludingallow_guest=Truevariants. Every hit is a test case; the guest ones are pre-auth. - Lowest-token sweep. Auth as the weakest role you're allowed to have (a contacts-only or no-role user) and replay every enumerated method's canonical read/modify verb. The wave proves ~30 of these answered 200 with data or writes for low-priv users. This is a scripted decision table, not manual poking.
- Verb parity. Several legs are the same document with create gated but modify/status not (or read gated but list not). For every gated verb you find, immediately test its siblings: create/read/update/delete/submit/cancel/amend/set-status. Frappe document verbs are separately implemented, gate drift between them is this product's native failure mode.
Permission-disabling flags as parameters¶
Two legs share a rule the whole ecosystem breeds:
- The record-creation endpoint takes the record type from the request and inserts with permission checks disabled (f3v4/109667), the doctype name is user input, and the insert path runs
ignore_permissions-style semantics because it was written for internal callers. - A read endpoint honours a caller-supplied flag that disables its own permission enforcement (g24j/109621).
Replayable battery on any Frappe-shaped app (and any framework with permission-bypass booleans in internal APIs):
- On every create/update/call endpoint, fuzz the internal bypass spellings as extra parameters:
ignore_permissions,ignore_permissions=1/true,ignore_mandatory,no_permission_check, plus the framework's own names once you've grepped the function signatures. Same shape as the Sept 21 "supplied-scope vs owned-scope" rule: the check is performed against what you sent, not what the server owns. - On record-creation endpoints, swap the type/name parameter to privileged records (
User,Role,DocType,Print Format,Notification) and observe whether insertion succeeds, the 8.8 leg is exactly "supply privileged record type → create privileged account → site takeover." - Doctypes with
istable/hidden flags are still reachable through the generic/api/resource/and/api/method/frappe.clientfamilies even when no UI exists for them, enumerate the DocType list (frappe.get_all('DocType')equivalent via generic read) and probe the generic CRUD surface per doctype, not per UI page.
Unrestricted Jinja = the compute sink¶
The SSTI leg (cw68/109652, 8.8) is the highest-value single in the wave: user-controlled message fields are rendered as templates without validation, in an unrestricted context, and the advisory's own impact list, read/write arbitrary DB data, delete documents, server-side outbound requests, send mail from the site, is the full impact cone of a non-sandboxed Jinja environment reaching Frappe's db/sendmail/requests surface.
Operator rules:
- Inventory every field that stores text and is later rendered. Frappe renders Jinja in notifications, print formats, email communication fields, and document hooks; the advisory shows the message field is enough. Any "message"/"content"/"subject" field that later crosses into the site's templating path is a candidate, submit one canary expression per field you're authorized to touch and watch whether it evaluates.
- Sandbox posture is invisible from the outside,
{{ ''.__class__ }}-style probing distinguishes unrestricted from sandboxed environments; the wave proves ship-default here was unrestricted on the affected path. Pair with the Aug 6 agent-authority page's codegen legs: framework-rendered user text is compute-on-behalf-of-the-server. - The outbound-request + send-mail legs make the SSTI an SSRF and mail-relay pivot by itself, one expression, three impact classes. Report per-sink, not as generic "SSTI".
Mail as both leak channel and IDOR target¶
Three legs treat outgoing mail as an attack surface rather than a delivery mechanism:
- File read via outgoing HTML attributes (3cf9/109601): an attribute value referencing a local file path in outgoing email HTML embeds server file content into mail that goes to a recipient you control. The mail pipeline becomes the readback channel for an SSRF-adjacent file-read, same "read needs a channel, email is one" pattern as the Fleet canary pagination leg and the Pulp credential-slot leg.
- JMAP account-ID IDOR (8q8g/109675):
get_mailboxes/get_quotaaccept another user's account ID, mailbox names, message counts, and automation rules with sender addresses come back. Automation rules are a config-disclosure oracle (filters, actions, forwarding addresses) worth more than the mailbox names. Probe every JMAP/mail API verb with a sibling account's ID, the class is the same as the Nginx UI node-token and PictShare leak family: API takes the principal as a parameter, not from the session. - The May 6 page's Frappe Cloud multi-recipient signup OTP leg (CVE-2026-4894) is the third independent break in this product's mail boundary in five months, same-product re-sweep rule validated again: any Frappe item on an engagement gets the full mail-boundary battery (recipient-parsing shapes, attribute/file references, principal-as-parameter sweeps), because this vendor's mail surface has now produced bugs in three separate subsystems.
Fix-band spread is a fingerprint and a timeline¶
The fix bands (15.98.0 → 15.121.3, 16.6.0 → 16.35.0) mean each leg was patched at a different point over months. A live instance's exact version (readable from /api/method/frappe.client.get_versions-shaped endpoints, login-page asset paths, or response headers) tells you which subset of this wave is still open on that host, diff version against the per-advisory bands before choosing test cases. A site current on 16.35+ is patched; a site on 16.20 still has everything fixed in 16.21-16.35, including the 8.1 public-page XSS and the permission-flag leg. This is the same "advisory set as per-host attack map" pattern as the Brocade and HPE ClearPass waves.
October 16 follow-up: network restriction bound to session auth only, and the no-role SQLi cohort grows¶
Two Frappe advisories landed 2026-10-16 03:30Z, second Frappe wave in three days, same-product re-sweep rule once more:
restrict_ipallowlist enforced for session logins only (GHSA-87cm-fpc4-v76f / CVE-2026-111388, medium, Framework before 15.120.0 / 16.x before 16.33.0). The per-user IP allowlist is not applied to non-session authentication methods: API key, OAuth, and header-based auth authenticate fine from any IP outside the allowlist. The generalization: IP/network restriction is an attribute of the credential class, not the user. A user who can create an API key or OAuth token from inside the allowlisted network hands you a credential that works from anywhere. Audit battery on any product with IP-restriction features: enumerate every auth shape the product supports (session, API key, OAuth bearer, HMAC/header, PAT), then test the network gate against each shape with the same identity, decision table (auth-shape × inside/outside allowlist). Frappe made this concrete: mint an API key from an allowed source, replay it from a denied source.- HRMS SQLi cohort grows (GHSA-c3rv-h6h6-6f8m / CVE-2026-111389, high, HRMS 14.x before 14.38.2, 15.x before 15.64.0, 16.x before 16.18.0): "some endpoints, missing input validation, any authenticated attacker including low-privilege", same sentence as the Oct 13 wave's 59gg/109608 leg. Fold into the existing low-token sweep; note HRMS has its own fix bands separate from Framework, so fingerprint HRMS version independently when diffing per-host open legs.
Validation boundaries¶
- Authorized instances only; Frappe's public bounty program defines scope, read it per engagement.
- Prove authz gaps with two disposable accounts (low-role vs target) and canary documents you own; never read real ERP data (customer records, payroll, bank master data are all in-scope-of-the-database here).
- Prove the SSTI with an inert marker expression (string output, or a canary read of a doctype you created); do not exercise the delete/mail legs beyond presence, one sent test mail to an owned mailbox max.
- SSRF to owned callbacks only; file-read proofs to synthetic canary files, never
/etc/passwd-style reads in report evidence. - Public booking-page XSS: inert DOM marker in your own privileged test account's browser.
Tracked from the same wave without individual publication: IBM i 7.3-7.6 authenticated pack (detail-free boilerplate, IBM June-style), IBM TRIRIGA pair, IBM DataStage authenticated path-traversal/DoS/disclosure singles, IBM Aspera local LPE/info-disclosure singles, Mistral.rs and CityGaussian sparse singles, and the remaining Frappe missing-authz/XSS singles inventoried above.
Related pages: the May 6 render/identity page (Frappe Cloud multi-recipient signup OTP, CVE-2026-4894), the Sept 18 ignored-scope page (supplied-scope lineage for the record-type-from-request leg), the Sept 21 auth-precedence page (verb-gate drift family), the Oct 12 Grav page (same-week coordinated-wave audit-kit shape), and the Oct 8 Malcolm page (per-surface authz coverage audits).
November 17 follow-up: Frappe Framework email-body SSRF via stylesheet link injection, Premailer fetches and returns the content (CVE-2026-130069 / GHSA-3wwg-7wmq-2q3c, medium, <15.123.0 / <16.50.0)¶
frappe.email.email_body.get_email_html has no role check: authenticated users, including portal Website Users (the lowest logged-in tier), inject <link rel="stylesheet"> tags into unescaped email templates, and Premailer (the HTML-to-text/inliner step) fetches the href and folds the response into the email body. Portal user = server-side fetch of internal or external hosts, with content returned in the rendered email (full read-back, not a blind ping).
Rules extending this page's mail-sink section:
- The HTML post-processor is a second SSRF sink behind the validator. Escaping checks that ignore
<link>/@import(or run before inlining) still lose, because Premailer/inline-css libraries resolve remote stylesheets after the template step. Battery per email-content field:<link rel=stylesheet href=http://owned-callback>,@import url(...),src/backgroundshapes; check both what renders and what the outbound email body contains. - Portal/Website-User tier gets the full authenticated battery, not just the public battery. The privilege floor here is someone who registered an account; treat every "authenticated" advisory as portal-user-reachable until the route proves otherwise.
- Same dependency-class lineage as the July 9 page's Premailer
@importrule: the fetch happens in the email pipeline, so the internal hosts are those the mail worker can reach, which often differs from the web worker's network position. Map both. - Validation: portal test account you own, owned callbacks, synthetic internal-canary service on a lab host; never probe real internal services.
November 21 follow-up: second Frappe/ERPNext wave (~64 GHSAs), the sort parameter is raw SQL, the validated value gets overwritten after validation, and an uncorrelated EXISTS subquery reads anyone's phone number¶
Second coordinated wave (published 2026-11-21T18:30Z; fix bands spread across 15.121-15.124.x and 16.34-16.53.x, again a per-patch history map). The page's "read the wave as an attack map" framing holds; five legs add new axes beyond this page's whitelisted-method/authz-gap inventory:
- ORDER/sort parameter reaches SQL unvalidated (GHSA-grf2-2gc8-454h / CVE-2026-134431, high) and the sort-grammar lineage extends again: authenticated low-privilege users inject SQL via list-view sort parameters on endpoints that "build part of a query from caller-supplied sort parameters without validation". This is the Edito Dynamic LINQ sort leg (Sept 18 query-grammar page), the Koha/MyBatis/Payload sort legs, and the Dc MultiVendor ORDER BY class: every list endpoint family gets the sort-param battery first, it is the cheapest SQLi probe on Frappe (frappe.get_list
order_bystring) or any ORM with string ORDER BY passthrough. - Validated-then-overwritten: early validation is not validation (GHSA-jvg7-5h3q-2m9m / CVE-2026-134372, high). In Selling/Buying endpoints, "a request value validated early can be overridden by caller-supplied data that reaches a database query unvalidated"; any authenticated user including a roleless portal user extracts sensitive data including active session data, escalating to admin account takeover. Operator rule: for any parameter the codebase validates then re-reads (validate at line X,
frappe.form_dict.<param>re-read at line Y, or docfield overwritten by a second assignment), assume the second read wins; black-box tell = two parameters with related names (*_type+type, nested payload + flat field), fuzz the late-bound one even when the early one rejects payloads. Portal user as baseline privilege means registered-but-unprivileged signup is the attack floor; check whether signup is open before dismissing any ERPNext "authenticated" advisory. - Uncorrelated EXISTS subquery = unscoped read primitive (GHSA-3fgq-f6w2-q28r / CVE-2026-134371, high). SMS Settings
get_contact_numberfilters byEXISTS (SELECT 1 FROM tabContact ...)without linking the subquery to the row being returned, so the endpoint returnsmobile_no/phoneof arbitrary Contact rows. Audit rule: in filter-key APIs, look for EXISTS/IN subqueries built from a request parameter; if the outer query doesn't correlate to the subquery's constraint, the parameter is a boolean filter and the response is unscoped data. - Attachment handling as file-read oracle (GHSA-57vx-8v2p-5cr8 / CVE-2026-134370, high): a single ordinary role, no write permissions, abuses file-attachment handling for arbitrary server file read outside the app boundary. Secondaries-of-attachment (preview, private-file token minting,
get_attached_images) get the traversal battery even for read-only users: attach-path consumers re-resolve paths at serve time. - Print/portal views skip User Permissions (GHSA-59c5-wj79-c8c9 / CVE-2026-134399, high): desk-side permission scoping lives on the list layer; print formats and portal views re-render documents from a separate code path that omits
User Permissions(has_permissionon the doc, not role-scoped filters), letting any desk user name out-of-scope customer records. This is the wiki's render-path-vs-list-path rule (MembershipWorks front-end filter leg): enumerate every renderer that materializes a record (print, portal, export, share link, PDF, email notification) and run the out-of-scope-id probe per renderer, not just the REST list endpoint.
Also in-wave without publication: ~40 more "fails to enforce authorization" singles (this page's ungated-whitelisted-method battery already covers the probing workflow), Stock/Accounting role-scope drifts, an imported-supplier-email stored XSS, and validation-gap singles. Tracked: w4w5/3gxr-style medium authorization flaws pending enrichment. Same validation boundaries as the Oct 13 page: disposable site, portal + desk test accounts, synthetic documents; never enumerate a production ERP or another tenant's records.
November 26 second follow-up: five-leg batch, unguarded Document.update, request-id header SQLi, module-hook Jinja globals, and the password grant that skips 2FA (GHSA-4f9x-j3mh-m397 / CVE-2026-137550 critical + 4, 15.x/16.x)¶
Document.update()submits or alters any document with no per-document permission check (GHSA-4f9x-j3mh-m397, critical, <15.122/<16.50). The generic document-update entry point skipped the submit/modify permission validation that the named controllers enforce. Operator rule (extends the ungated-whitelisted-method battery): Frappe permission enforcement lives per-code-path, not per-model; enumerate every path that writes a Doc (update,save,rename,submit-adjacent helpers, bulk endpoints) and run the wrong-doc-type probe from a roleless portal user on each.- Blind SQLi in the
X-Frappe-Request-Idheader when monitoring is on (GHSA-87gq-r34m-4w76, high, unauthenticated). A request-correlation header reaching SQL is the parameter-name/header input-plane battery paying off again: fuzz NON-content headers (X-*-Request-Id,X-Correlation-Id,X-Trace-Id) with timing/error payloads even though no UI feature touches them; monitoring/observability features log headers into backends and sometimes build queries from them. - Module-path-hooked modules leak imported functions as Jinja globals = sandbox escape for template authors (GHSA-2mp6-rg3v-jj4v, high). Anything a hooked module
imports becomes callable by name from Print Formats. Audit rule on any Frappe site you can author print formats on: enumerate installed apps' hooks, then attempt calls to imported-but-not-defined names inside a sandboxed template; "sandboxed" Jinja is only as small as the global namespace the app injected. Pairs with the unrestricted-Jinja legs above. - Undocumented OAuth2
password(ROPC) grant skips 2FA and forced password resets (GHSA-c5vj-qrq7-9h77, high). Credential possession alone mints a full-access token via the token endpoint. Always enumerategrant_typevalues on the token endpoint including undocumented ones (password, legacy custom names); 2FA enforced in the UI says nothing about alternate grant paths. Same family as the Keycloak alternate-route-family and Traccar empty-bind legs on the Sept 21 precedence page. - CSV/XLSX exports carry live spreadsheet formulas (GHSA-j496-337q-xf7w, medium): stored formula injection (
=cmd|...,HYPERLINK,WEBSERVICE) on export. Standard export-path battery for any ERP with admin/user-authored data feeding reports: seed a=1+1cell, open the export in a spreadsheet, check whether it evaluated.