/

CVE-2026-130857

Severity:

HIGH RISK

(8.3)

Authorization Bypass (CWE-639) in EveryDocs Core App

CVE-2026-130857

Deferred

Vulnerability type

Category:

Authorization Bypass / Insecure Direct Object Reference

CWE:

CWE-639

Impact:

Unauthorized access to, modification of, or deletion of other users' records and stored resources

Severity:

HIGH RISK

(8.3)

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

EveryDocs Core contains an authorization flaw in which authenticated users may access records belonging to other users through lookups that do not verify ownership. When record identifiers can be guessed or enumerated, an attacker may read, modify, or delete other users' documents and related resources.

Affected context

The issue affects EveryDocs Core before 1.6.1, where multiple controllers use record identifiers to retrieve models without consistently scoping those lookups to the authenticated user. It becomes risky when an authenticated user can reach these controller actions and identifiers are predictable or discoverable.

Exploit preconditions

  • Attack surface: Authenticated application endpoints that retrieve or manage documents, files, folders, tags, or people by record ID
  • Required access: An account with access to the affected endpoints; self-registration may make account creation available
  • Trigger point: A controller action that looks up a record using an identifier supplied in the request
  • Why exploitation is possible: The lookup is not adequately constrained by the current user's ownership or authorization, and sequential identifiers may be enumerable

Why this happens

The underlying issue is an insecure direct object reference: controllers retrieve records by ID without consistently checking whether the authenticated user is authorized to access them. This maps to CWE-639: Authorization Bypass Through User-Controlled Key, where a user-controlled identifier can be used to access another user's resource because authorization is not enforced for that object.

Potential impact

  • An authenticated user may read other users' documents or stored files
  • An attacker could modify or delete records belonging to other users
  • Folders, tags, or people records may be renamed or deleted without authorization
  • Unauthorized changes could affect data integrity and availability

General mitigation guidance

Mitigation typically focuses on enforcing object-level authorization at every resource access point.

Common defensive patterns include:

  • Scope record lookups to the authenticated user's authorized resources
  • Apply centralized authorization checks for read, update, and delete operations
  • Treat request-supplied identifiers as untrusted and avoid relying on identifier secrecy
  • Use least-privilege access controls and deny access by default when ownership cannot be verified
  • Add tests that verify users cannot access or change records owned by other users

How teams detect issues like this

High-level detection approaches include:

  • Static analysis searches for request-derived identifiers passed to unscoped model lookups
  • Code review checks that each read, update, and delete action performs object-level authorization
  • Policy enforcement requiring authorization checks for resource access in controllers or service layers
  • Automated tests using multiple user accounts to check for cross-user access to records

Sources

SourceLink
github.comgithub.com/jonashellmann/everydocs-core/blob/v1.6.0/app/controllers/documents_controller.rb#L110-L140
github.comgithub.com/jonashellmann/everydocs-core/commit/4b6e1a79baae44c479505674f9354a9da0906f4d
github.comgithub.com/jonashellmann/everydocs-core/releases/tag/v1.6.1
github.comgithub.com/jonashellmann/everydocs-core/security/advisories/GHSA-g83j-767p-v5w7
vulncheck.comvulncheck.com/advisories/everydocs-core-before-1.6.1-authorization-bypass-via-unscoped-record-lookups

Frequently asked

questions

An attacker needs an authenticated account and access to affected endpoints. Self-registration may allow an attacker to create an account.

Depending on the affected action, an attacker may read, modify, or delete other users' documents, files, folders, tags, or people records.

Enforce object-level authorization for every operation and scope resource lookups to records the authenticated user is permitted to access.

Treat identifiers from requests as untrusted, require authorization checks by default, and test that users cannot access or modify one another's records.

Find out what's already
exploitable in your codebase.