TrailBase 0.28.2 before 0.35.10 contains an insecure direct object reference in std.FileUpload columns. The Record API accepts attacker-supplied object-store IDs during insert and update operations without validating ownership. CVE-2026-119759 describes the flaw as an authorization bypass through a user-controlled key.
File columns often store two different things. One is the database record that belongs to the application user. The other is an object key in a bucket, disk store, or content-addressed service. A reference can look valid because the key exists and the database accepts the string. Ownership is a separate question: should this caller be allowed to point a record at this object?
The vulnerability matters when multiple users or tenants share the same object store. A crafted insert can attach someone else's uploaded document to an attacker's record. A crafted update can replace a benign reference with a sensitive object. The exact impact depends on what the API returns, how signed URLs are issued, and whether later reads rely only on the stored reference.
Upgrade to 0.35.10 and identify records that contain FileUpload columns. Record the object-store IDs and owners before and after a controlled test. Do not assume that a clean version check proves past records are safe. The database may already contain references created through the vulnerable path.
Authorization should run at the point where a file ID is attached. The server needs to know the caller, the target record, the object owner, and the operation. It should reject an object key that belongs to another principal or tenant even when the object exists and the database type accepts it. A frontend picker cannot enforce this rule because an API client can submit a different ID.
Object storage policies provide another boundary. Scope credentials to the tenant prefix and require the backend to sign reads only for objects that the record is allowed to reference. If the application uses a shared bucket, maintain an ownership table that the server checks with the mutation. Avoid treating a random or unguessable ID as authorization.
Audit logs should distinguish metadata updates from actual object reads. Capture the actor, old reference, new reference, object owner, result, and request ID. Alerts can focus on cross-tenant reference changes, repeated 403 responses, and objects attached to records created outside the normal upload flow.
Test both insert and update paths. Create two users in a staging tenant, upload one file as each, and attempt to attach the other user's file ID. Repeat through direct API calls with a valid token. Verify that the server rejects the request before the record is committed and that no orphaned object remains.
The fix is a small version change with a broad data-integrity consequence. Teams that treat files as ordinary columns need to remember that every reference is an authorization decision.