/

CVE-2026-125398

Severity:

HIGH RISK

(7.1)

Authorization Bypass (CWE-862) in Instatic Row API

CVE-2026-125398

Deferred

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-862

Impact:

Unauthorized data access and modification

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Instatic contains an authorization bypass in the row-author handler: it loads rows without applying the table-level access check used by the protected access-loading path. An authenticated user with content.edit.any but without data.system.tables.read may be able to read system-table rows and reassign their authors through the affected API endpoint.

Affected context

The issue affects Instatic before 0.0.21 in the CMS data-row author handler. It becomes a risk when an authenticated user can reach the author-update API and has content.edit.any but lacks data.system.tables.read; the handler's row-loading path may bypass the table-level access check.

Exploit preconditions

  • Attack surface: The /admin/api/cms/data/rows/:id/author API endpoint
  • Required access: An authenticated account with content.edit.any but without data.system.tables.read
  • Trigger point: A PATCH request handled by handleRowAuthor
  • Why exploitation is possible: The handler uses getDataRow() rather than loadRowForAccess(), so table-level authorization checks may be skipped when accessing a row.

Why this happens

The underlying issue is a missing authorization check, mapped to CWE-862: Missing Authorization. The handler retrieves a row through a path that does not enforce the table-level access policy, then allows the author operation to proceed. Authorization should be enforced consistently at the resource being accessed, rather than relying on a different permission or an unguarded data-loading function.

Potential impact

  • Users with insufficient table-level permission may be able to read system-table rows.
  • An attacker could reassign row authors, affecting attribution or workflow ownership.
  • Unauthorized access or changes could undermine data confidentiality and integrity.

General mitigation guidance

Common defensive patterns include:

  • Enforce authorization checks for the specific table and row before reading or modifying data.
  • Use data-access helpers that consistently apply policy checks, and avoid bypassing them in mutation handlers.
  • Treat each API operation as an independent authorization boundary; do not infer permission from a broader or unrelated capability.
  • Apply least privilege to user roles and separate read, edit, and author-assignment permissions where appropriate.
  • Deny access by default when a resource's authorization context cannot be established.

How teams detect issues like this

  • Review row and mutation handlers for data-loading paths that do not enforce the same authorization policy as protected access helpers.
  • Use static analysis or code-review checks to flag sensitive data access and updates that occur before resource-level authorization.
  • Test API authorization with accounts that have edit capabilities but lack the relevant table-read permissions.
  • Enforce policy tests in CI to verify that unauthorized requests are denied and do not expose or modify rows.

Sources

SourceLink
github.comgithub.com/CoreBunch/Instatic/blob/v0.0.20/server/handlers/cms/data/rows.ts#L378-L398
github.comgithub.com/CoreBunch/Instatic/commit/ff1e51eb59c860864fa24e8c3e2716b56314f3ad
github.comgithub.com/CoreBunch/Instatic/releases/tag/v0.0.21
github.comgithub.com/CoreBunch/Instatic/security/advisories/GHSA-m425-wmrc-4v4v
vulncheck.comvulncheck.com/advisories/instatic-before-0.0.21-authorization-bypass-via-row-author-reassignment-endpoint

Frequently asked

questions

An authenticated user with content.edit.any who lacks data.system.tables.read may be able to reach the affected operation.

The author-update API route, /admin/api/cms/data/rows/:id/author, where the handler may skip table-level access checks.

Enforce resource-level authorization before reading or changing a row, using access-control-aware data access paths.

Apply least privilege, test combinations of permissions at API boundaries, and review handlers for inconsistent authorization checks.

Find out what's already
exploitable in your codebase.