The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40185

CVE-2026-40185: TREK Auth Bypass Vulnerability

CVE-2026-40185 is an authorization bypass flaw in TREK collaborative travel planner affecting Immich trip photo management routes. Versions prior to 2.7.2 are vulnerable. This article covers technical details, impact, and patches.

Published: April 17, 2026

CVE-2026-40185 Overview

CVE-2026-40185 is a missing authorization vulnerability in TREK, a collaborative travel planner application. Prior to version 2.7.2, TREK was missing authorization checks on the Immich trip photo management routes, allowing authenticated users to potentially access and modify trip photos belonging to other users without proper authorization.

Critical Impact

Authenticated users can bypass authorization controls to access sensitive trip photos and potentially modify content belonging to other users, leading to unauthorized data exposure and integrity violations.

Affected Products

  • TREK collaborative travel planner versions prior to 2.7.2

Discovery Timeline

  • April 10, 2026 - CVE-2026-40185 published to NVD
  • April 13, 2026 - Last updated in NVD database

Technical Details for CVE-2026-40185

Vulnerability Analysis

This vulnerability is classified under CWE-862 (Missing Authorization), which occurs when a software system does not perform an authorization check when an actor attempts to access a resource or perform an action. In the case of TREK, the Immich trip photo management routes failed to verify whether the requesting user had proper permissions to access or modify specific trip photos.

The lack of authorization checks creates a broken access control scenario where authenticated users can access resources that should be restricted to specific trip participants or owners. This represents a horizontal privilege escalation risk, where users can access data belonging to other users at the same privilege level.

Root Cause

The root cause of this vulnerability is the absence of authorization middleware or permission validation logic on the Immich trip photo management routes. When processing requests to these endpoints, the application verified authentication (confirming the user was logged in) but failed to verify authorization (confirming the user had permission to access the specific resource).

This is a common application security flaw where developers implement authentication but overlook the need for granular access control checks at the resource level.

Attack Vector

The vulnerability is exploitable over the network by any authenticated user. An attacker with a valid account on a TREK instance could craft requests to the Immich trip photo management endpoints, referencing trip IDs or photo resources belonging to other users. Without proper authorization checks, the application would process these requests and return the requested data or perform the requested modifications.

The attack requires low complexity to execute and does not require any user interaction. An attacker simply needs to enumerate or guess valid resource identifiers to access unauthorized content. The primary impact is confidentiality breach through unauthorized access to trip photos, with secondary integrity impact through potential modification capabilities.

Detection Methods for CVE-2026-40185

Indicators of Compromise

  • Unusual access patterns to trip photo endpoints by users accessing trips they don't own
  • API requests to Immich photo management routes with trip or photo IDs not associated with the requesting user
  • Elevated volume of photo enumeration requests from individual user accounts

Detection Strategies

  • Implement application-level logging to track which users access which trip resources
  • Monitor for sequential or bulk requests to trip photo endpoints that may indicate enumeration attempts
  • Audit access logs for users viewing or modifying trips outside their normal usage patterns
  • Deploy web application firewalls with rules to detect access control bypass attempts

Monitoring Recommendations

  • Enable detailed access logging on all Immich trip photo management routes
  • Set up alerts for access attempts to resources outside a user's trip membership
  • Regularly audit user access patterns against trip membership data
  • Monitor for unusual API request volumes that may indicate automated exploitation

How to Mitigate CVE-2026-40185

Immediate Actions Required

  • Upgrade TREK to version 2.7.2 or later immediately
  • Review access logs to identify potential unauthorized access to trip photos prior to patching
  • Audit user accounts for suspicious activity patterns
  • Notify affected users if unauthorized access to their trip data is confirmed

Patch Information

The vulnerability is fixed in TREK version 2.7.2. The fix was implemented in commit 16277a3811a00c2983f7486fee83c112986cb179, which adds proper authorization checks to the Immich trip photo management routes. Organizations running TREK should upgrade to this version immediately.

For detailed information about the patch, see the GitHub Security Advisory GHSA-pcr3-6647-jh72 and the v2.7.2 release notes.

Workarounds

  • If immediate patching is not possible, consider temporarily disabling the Immich trip photo integration
  • Implement network-level access controls to restrict access to the application to trusted users only
  • Deploy a reverse proxy or web application firewall with custom rules to enforce authorization on affected routes
  • Monitor the affected endpoints closely for suspicious access patterns until patching can be completed
bash
# Example: Verify installed TREK version
docker exec -it trek-app cat /app/package.json | grep version

# Upgrade to patched version
docker pull mauriceboe/trek:2.7.2
docker-compose down && docker-compose up -d

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechTrek

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-862
  • Technical References
  • GitHub Commit Log

  • GitHub Release v2.7.2

  • GitHub Security Advisory GHSA-pcr3-6647-jh72
  • Related CVEs
  • CVE-2026-40184: TREK Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English