Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as trip owner
-
DeliveryStore crafted HTML markup in trip title
-
ExploitCollaborator opens authenticated Journey page
-
InstallBrowser fetches GET /api/journeys/suggestions
-
C2Unsanitized title interpolated into i18n template
-
ExecuteRendered via dangerouslySetInnerHTML into collaborator DOM
-
ImpactContent spoofed or UI redressed in victim session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The Journey add-on must be explicitly enabled in the TREK deployment (confirmed by CVSS 4.0 AT:P); installations without this add-on active are not affected. The attacker must be an authenticated trip owner (CVSS PR:L) with the ability to create or modify trip titles that appear in journey suggestions. The victim must be an authenticated collaborator who actively opens the Journey page, triggering the GET /api/journeys/suggestions fetch (CVSS UI:A). Script execution and inline event handler firing are blocked by the default Content Security Policy, limiting outcomes to HTML structure injection, content spoofing, and UI redress rather than full cross-site scripting. Non-default Journey add-on enablement is the primary deployment-level gating factor. |
| Impact | The CVSS 4.0 score of 2.0 accurately reflects multiple compounding constraints. The attack requires specific prerequisites (AT:P): the Journey add-on must be explicitly enabled, which is not a default deployment mode. The attacker must hold low-privilege authenticated access as a trip owner (PR:L), and exploitation requires the victim collaborator to actively open the Journey page (UI:A). Integrity impact is limited (VI:L) with no confidentiality or availability impact, because the application's default Content Security Policy blocks inline event handlers and script execution, preventing full XSS payload delivery. No EPSS data was provided in the available intelligence, and the vulnerability is not listed in CISA KEV, with no public exploit code identified. The overall real-world risk is low: this is a narrow-scope stored HTML injection in an optional add-on, substantially mitigated by both authentication requirements and the existing CSP posture. |
| Exploit ScenarioDerived | An authenticated TREK trip owner creates or renames a trip with a title containing crafted HTML such as a fake login overlay or a deceptive anchor element. When a collaborator subsequently opens the Journey page, the browser requests GET /api/journeys/suggestions, which returns the unsanitized title; the frontend interpolates it into the i18n template and renders it via dangerouslySetInnerHTML, inserting the attacker-controlled HTML into the collaborator's live DOM. Because the default CSP blocks script execution and inline handlers, the practical outcome is visual spoofing - for example, a convincing credential-harvesting overlay - rather than arbitrary JavaScript execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 20, 2026
Stored HTML injection in TREK collaborative travel planner (versions prior to 3.1.0) enables content spoofing and UI redress attacks against authenticated collaborators when the Journey add-on is enabled. An authenticated trip owner embeds raw HTML in a trip title; the backend endpoint GET /api/journeys/suggestions returns it unsanitized, and the frontend renders it directly via React's dangerouslySetInnerHTML, bypassing output encoding. The default Content Security Policy blocks inline handlers and script execution, constraining impact to visual manipulation rather than full cross-site scripting; no public exploit or active exploitation has been identified at time of analysis.
RemediationAI
Upgrade to TREK version 3.1.0, which resolves the issue as confirmed by the GitHub release at https://github.com/liketrek/TREK/releases/tag/v3.1.0 and the associated fix commit ad893eb1cc75b6d56f402d73a6d41bd48ba7ae11 (https://github.com/liketrek/TREK/commit/ad893eb1cc75b6d56f402d73a6d41bd48ba7ae11). If an immediate upgrade is not feasible, disabling the Journey add-on entirely eliminates the vulnerable rendering path, as the dangerouslySetInnerHTML sink in JourneyPage.tsx is only reachable when that add-on is active. Enforcing a strict Content Security Policy that prohibits inline styles and restricts navigable URLs can reduce the residual risk from UI redress attacks; however, be aware that overly restrictive CSP directives may break legitimate Journey add-on functionality. Restricting trip creation privileges to a known-trusted set of users also narrows the population of potential injectors.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
TREK is a React-based collaborative travel planner (CPE: cpe:2.3:a:mauriceboe:trek). The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation). The vulnerable data flow begins in the Journey add-on's backend, where getSuggestions(userId) returns raw trip titles through GET /api/journeys/suggestions without sanitization. On the frontend, client/src/i18n/TranslationContext.tsx interpolates the unescaped activeSuggestion.title value into the i18n template string journey.frontpage.suggestionText. The resulting string is then passed to React's dangerouslySetInnerHTML prop in client/src/pages/JourneyPage.tsx, which explicitly bypasses React's built-in HTML escaping and causes the browser to parse and render any embedded HTML as live DOM. The CSP mitigates script execution but does not prevent HTML structure injection.
Know when Trek gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Journey add-on prerequisite justifies AC:H; collaborator must open the page (UI:R); CSP limits impact to UI integrity only (I:L), no confidentiality or availability effect.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Server-side request forgery in TREK before 3.3.0 allows an authenticated user (CVSS PR:L) to persist an attacker-control
TREK, a collaborative travel-planning web application, authorizes the DELETE /api/trips/:tripId/collab/notes/:noteId/fil
Share-link token theft in TREK versions 3.0.0 through 3.0.x allows any ordinary authenticated user to exfiltrate private
Authentication bypass in TREK collaborative travel planner (versions prior to 2.7.2) allows authenticated attackers with
Path traversal in the liketrek TREK Public Journey Photo Proxy controller allows remote attackers - without authenticati
Improper authentication in liketrek TREK up to version 3.0.22 allows a remote unauthenticated attacker to bypass the OID
Server-side request forgery in TREK (versions prior to 3.4.0) allows an authenticated user to reach internal services or
Incorrect authorization in liketrek TREK's Journey Photo Proxy (all versions through 3.0.22) enables remote unauthentica
Server-Side Request Forgery in TREK, a collaborative travel planner, allows any authenticated user to pivot the server i
Authentication bypass in liketrek TREK up to v3.0.22 allows a remote attacker with valid credentials to circumvent two-f
TREK, a self-hosted collaborative travel planner, returns complete trip itinerary data - day plans, assignments, notes,
SQL injection in liketrek TREK's Journey Entry Update endpoint allows authenticated remote attackers to manipulate under
EUVD-2026-63694
NVD
CVE.org
EPSS
GitHub
Exploit-DB