# CVE-2026-54505: TREK: Stored cross-user HTML injection via trip title in the Journey suggestion banner

- Severity: Low 2.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-20T21:44:50.337Z
- Modified: 2026-10-18T20:10:00.110Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- mauriceboe TREK: < 3.1.0

## References

- <https://github.com/liketrek/TREK/security/advisories/GHSA-g8rf-gqrw-4qf9> (exploit)
- <https://github.com/liketrek/TREK/pull/1185>
- <https://github.com/liketrek/TREK/commit/ad893eb1cc75b6d56f402d73a6d41bd48ba7ae11>
- <https://github.com/liketrek/TREK/releases/tag/v3.1.0>

## Sources

- CVE List: [CVE-2026-54505](https://www.cve.org/CVERecord?id=CVE-2026-54505), CVE Terms of Use, modified 2026-08-25
- NVD: [CVE-2026-54505](https://nvd.nist.gov/vuln/detail/CVE-2026-54505), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2026-54505 · Whole record: https://cve.day/CVE-2026-54505.json · Rebuilt by cve.day 2026-11-25T22:59:34.736Z
