2.0low
TREK: Stored cross-user HTML injection via trip title in the Journey suggestion banner
- Severity
- 2.0low CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.54% (higher than 46% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mauriceboe TREK | < 3.1.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
TREK es un planificador de viajes colaborativo. Antes de la versión 3.1.0, cuando el complemento Journey está habilitado, TREK interpola el valor sin escapar de activeSuggestion.title en journey.frontpage.suggestionText a través de cliente/src/i18n/TranslationContext.tsx y renderiza el resultado con dangerouslySetInnerHTML en cliente/src/pages/JourneyPage.tsx. Un propietario de viaje puede almacenar HTML en un título de viaje que califique, y GET /API/journeys/suggestions devuelve ese título a través de getSuggestions(userId) a un colaborador que abre la página Journey autenticada. El marcado se inserta como DOM en vivo en la sesión del colaborador, lo que permite la suplantación de contenido y la manipulación de la interfaz de usuario, aunque la Política de Seguridad de Contenido predeterminada bloquea los manejadores en línea y la ejecución de scripts. Este problema está solucionado en la versión 3.1.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54505 changed 2026-08-25 | CVE Terms of Use |
| NVD | CVE-2026-54505 changed 2026-10-18 | Public domain |