# 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.

- **Severity:** Low 2.0 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`)
- **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 available:** No
- **Published:** 20 Aug 2026
- **Updated:** 25 Aug 2026
- **Also known as:** GHSA-g8rf-gqrw-4qf9

## 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 (Improper Neutralization of Input During Web Page Generation)

## 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.

## Is CVE-2026-54505 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54505 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-54505 and fix it if it is affected.

What it is: 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.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54505 exists.

Affected product: mauriceboe TREK. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-54505/ (Markdown: https://insights.sbomify.com/CVE-2026-54505/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-54505
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-54505
- OSV: https://osv.dev/vulnerability/CVE-2026-54505

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-54505/
Summaries are generated and may contain mistakes; the official description above is the record.
