Description
TREK is a collaborative travel planner. Prior to 3.3.0, the DELETE /api/trips/:tripId/collab/notes/:noteId/files/:fileId endpoint authorizes an authenticated user against the attacker-controlled tripId but deleteNoteFile in server/src/services/collabService.ts resolves the target only by note and file identifiers without requiring the file to belong to that trip. A user with edit access to any trip can submit identifiers belonging to another user's trip and permanently delete that note-file attachment. Sequential identifiers make broad targeting practical, while attachment read operations remain trip-scoped and are not affected. This issue is fixed in version 3.3.0.
Severity (CVSS)
| Base score | 7.1 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L |
| Provided by | CNA |
Weaknesses
- CWE-639 — CWE-639: Authorization Bypass Through User-Controlled Key
- CWE-862 — CWE-862: Missing Authorization
Affected products
| Vendor | Product | Versions |
|---|---|---|
| mauriceboe | TREK | < 3.3.0 |
References
- https://github.com/liketrek/TREK/security/advisories/GHSA-cjc5-722j-vvmf (x_refsource_CONFIRM)
- https://github.com/liketrek/TREK/pull/1520 (x_refsource_MISC)
- https://github.com/liketrek/TREK/commit/19064b39176660f3be3a2df198c87949504046e2 (x_refsource_MISC)
- https://github.com/liketrek/TREK/releases/tag/v3.3.0 (x_refsource_MISC)
Generated from the official CVE List on 25 Sep 2026 07:05 UTC.