CVE-2026-54505 TREK: Stored cross-user HTML injection via trip title in the Journey suggestion banner
A trip owner can inject HTML into trip titles, causing stored XSS in collaborators' sessions via the Journey suggestion banner.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-54505?
CVE-2026-54505 is a low-severity cross-site scripting vulnerability in mauriceboe TREK, published on 20 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
TREK is a collaborative travel planner. Prior to 3.1.0, when the Journey add-on is enabled, TREK interpolates the unescaped activeSuggestion.title value into journey.frontpage.suggestionText through client/src/i18n/TranslationContext.tsx and renders the result with dangerouslySetInnerHTML in client/src/pages/JourneyPage.tsx. A trip owner can store HTML in a qualifying trip title, and GET /api/journeys/suggestions returns that title through getSuggestions(userId) to a collaborator who opens the authenticated Journey page. The markup is inserted as live DOM in the collaborator's session, enabling content spoofing and UI redress, although the default Content Security Policy blocks inline handlers and script execution. This issue is fixed in version 3.1.0.
Weakness: CWE-79
Which versions are affected by CVE-2026-54505?
How do I fix CVE-2026-54505?
No fix has been published for CVE-2026-54505 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-54505 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54505 exists.
Sources
Also known as GHSA-g8rf-gqrw-4qf9.