CVE-2026-85616 grants a low-privilege user with reports.view permission the ability to soft-delete acceptance records and trigger email notifications across companies. The vulnerability sits at the intersection of two code paths that were never designed to interact as a security boundary: a feature flag for "Full Multiple Company Support" and a null check on a legacy users.company_id column. When the legacy column is null, the null check passes and cross-company access is granted — this is legacy column confusion, not intentional authorization logic.
The blast radius here is broader than a typical authorization bypass. One bug delivers three distinct damage vectors simultaneously: soft-delete capability (destroying audit artifacts with compliance significance), email trigger capability (a social engineering platform hidden inside what looks like a data access bug), and cross-company reconnaissance. The email vector is the most dangerous precisely because it isn't obvious data exfiltration — it's a tool for impersonation and fraud.
The architectural failure that birthed this vulnerability isn't the null check itself; it's the entanglement of read operations with mutation side effects behind a reports permission gate. Reports.view should never gate write actions. That this vulnerability exists at all indicates that acceptance manipulation endpoints were placed in the same service class as report generation — a fundamental violation of architectural separation that ensures blast radius stays contained.
Two systemic patterns enabled this flaw. First, predictable sequential acceptance IDs mean that even without the null check bypass, a low-privileged user could enumerate and access cross-company resources. The null check was the lock, but predictable IDs were the keys being handed out freely. Second, the feature flag was treated as a data visibility toggle rather than a security-critical boundary — it was never security-reviewed as a permission boundary, and when someone added the null check, they didn't understand they were implementing authorization logic.
Prioritize the fix in this order: first, add proper authorization checks to the soft-delete and email trigger endpoints that are independent of the company scoping logic — don't rely on patching the null check alone. Second, replace sequential acceptance IDs with UUIDs and enforce company scope at the ORM/query layer rather than the application layer. Third, audit the permission model to explicitly separate what each permission grants: endpoint access, data visibility, side effects, or all three. This semantic underspecification is what allowed a read permission to gate mutation actions in the first place.