Description
TREK is a collaborative travel planner. From 3.0.0 until 3.1.0, the GET /api/journeys/:id/share-link route in server/src/routes/journey.ts returns the result of getJourneyShareLink() from server/src/services/journeyShareService.ts without checking whether the authenticated requester can access the journey. Any ordinary authenticated user can enumerate sequential journey IDs and retrieve tokens from journey_share_tokens for another user's journey. The token grants unauthenticated access through GET /api/public/journey/:token to the shared journey's entries, captions, locations, moods, gallery photos, photo paths, and asset identifiers. This issue is fixed in version 3.1.0.
Severity (CVSS)
| Base score | 6.5 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| Provided by | CNA |
Weaknesses
- CWE-862 — CWE-862: Missing Authorization
Affected products
| Vendor | Product | Versions |
|---|---|---|
| mauriceboe | TREK | >= 3.0.0, < 3.1.0 |
References
- https://github.com/liketrek/TREK/security/advisories/GHSA-mx6m-qxv8-w624 (x_refsource_CONFIRM)
- https://github.com/liketrek/TREK/pull/1185 (x_refsource_MISC)
- https://github.com/liketrek/TREK/commit/ad893eb1cc75b6d56f402d73a6d41bd48ba7ae11 (x_refsource_MISC)
- https://github.com/liketrek/TREK/releases/tag/v3.1.0 (x_refsource_MISC)
Generated from the official CVE List on 21 Aug 2026 07:00 UTC.