Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid TREK account credentials
-
DeliveryInitiate login and reach Pre-2FA mfa_token stage
-
ExploitCraft manipulated mfa_token value
-
ExecutionSubmit request to loginUser endpoint
-
PersistBypass 2FA validation in authService.ts
-
ImpactAchieve full session as victim user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must possess valid primary credentials (username and password) for a TREK account - this is the explicit prerequisite encoded in PR:L of the CVSS 4.0 vector. The targeted TREK instance must be running a version at or below v3.0.22. The bypass specifically targets the Pre-2FA mfa_token handling stage, which is only reachable if the TREK deployment has multi-factor authentication configured or enforced; without 2FA enabled, this specific code path may not be triggered (though the authentication flow still passes through the vulnerable function). The attack is network-reachable (AV:N) with no required user interaction (UI:N) and no special attack prerequisites (AT:N). Exploitation is limited by: the requirement to possess valid first-factor credentials, the self-hosted nature of the software (no single central target), and absence of any known public exploit code at time of analysis. |
| Impact | The CVSS 4.0 score of 5.3 (Medium) reflects the PR:L prerequisite - an attacker must already possess a valid TREK account username and password before the bypass is achievable, meaningfully limiting the exposed attack surface compared to a fully unauthenticated bypass. The VC:L/VI:L/VA:L impact ratings are consistent with gaining unauthorized account access without escalating beyond the privilege level of the targeted user. However, the vendor's own characterization as 'critical' in the v3.1.0 release notes signals that the real-world consequence of bypassing 2FA - allowing account takeover of any user who has MFA enabled - is more impactful than the CVSS score alone suggests, particularly for self-hosted deployments storing sensitive travel itineraries or personal data. There is no CISA KEV listing and no public POC, indicating exploitation has not been observed at scale. EPSS data is absent from available intelligence. The practical risk is highest for TREK deployments where credential stuffing or prior credential compromise has occurred, since an attacker with stolen credentials could then trivially bypass the 2FA safety net. |
| Exploit ScenarioDerived | An attacker who has obtained valid TREK credentials - through phishing, credential stuffing, or a prior breach of a user's password - initiates a login request against the TREK instance. Rather than completing the MFA challenge normally, the attacker manipulates the mfa_token value sent to the Pre-2FA handler in loginUser, exploiting the improper validation to satisfy the authentication check without possessing the legitimate second factor. The attacker then receives a valid session for the victim account. No public POC has been identified, but the low attack complexity (AC:L in CVSS 4.0) suggests the manipulation is straightforward once the flaw is understood. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Authentication bypass in liketrek TREK up to v3.0.22 allows a remote attacker with valid credentials to circumvent two-factor authentication by manipulating the mfa_token parameter in the Pre-2FA handler of the loginUser function (authService.ts). The CVSS 4.0 vector (PR:L) confirms low-privilege credentials are a prerequisite, meaning the bypass targets users who have valid username/password combinations but should still be blocked by a second factor. The vendor's own release notes for v3.1.0 describe this as a 'critical authentication bypass' - one of 18 privately reported security issues - and strongly recommend immediate upgrade for all self-hosted instances. No public exploit code or CISA KEV listing has been identified at time of analysis.
RemediationAI
Vendor-released patch: v3.1.0, available at https://github.com/liketrek/TREK/releases/tag/v3.1.0. All self-hosted TREK operators should upgrade immediately; the vendor explicitly states that updating is strongly recommended for every self-hosted instance. Important caveat for Proxmox VE community-script users: the LXC helper script at community-scripts.org still targets the 3.0.x layout - using its Update option prior to the updated script being published will break the container. Proxmox VE users should wait for the updated community script before upgrading; data (/opt/trek/data, /opt/trek/uploads) and .env files are not at risk during the wait. Docker, Unraid, Helm, and manual install users are not subject to this caveat. As a compensating control for instances that cannot immediately upgrade, consider disabling external network access to the TREK login endpoint and restricting access to trusted IP ranges, accepting the trade-off of reduced availability for remote users.
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 self-hosted travel and trip-tracking web application (CPE: cpe:2.3:a:liketrek:trek) built historically on an Express backend (migrated to NestJS in v3.1.0). The vulnerability resides in the loginUser function within server/src/services/authService.ts at the Pre-2FA mfa_token handling stage. CWE-287 (Improper Authentication) indicates the root cause is a logic flaw in how the authentication pipeline validates or enforces the multi-factor token before granting a session - the mfa_token is likely either accepted without proper verification, accepted in an unexpected state, or bypassable via crafted input prior to the server completing the 2FA challenge. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L) confirms the flaw is network-reachable with low attack complexity and no special attack requirements beyond possessing valid primary credentials.
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:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
PR:L required as attacker must hold valid first-factor credentials; no availability impact from authentication bypass alone.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
DescriptionCVE.org
A vulnerability was found in liketrek TREK up to 3.0.22. Impacted is the function loginUser of the file server/src/services/authService.ts of the component Pre-2FA mfa_token Handler. The manipulation results in improper authentication. The attack may be performed from remote. Upgrading to version 3.1.0 is recommended to address this issue. Upgrading the affected component is recommended.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Server-side request forgery in TREK before 3.3.0 allows an authenticated user (CVSS PR:L) to persist an attacker-control
Authentication bypass in TREK collaborative travel planner (versions prior to 2.7.2) allows authenticated attackers with
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
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
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
Insecure direct object reference in TREK collaborative travel planner before 3.1.3 allows any authenticated user with fi
EUVD-2026-65468
GHSA-x6rr-9jxr-vqvg
NVD
CVE.org
EPSS
VulDB
Exploit-DB