A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-55008

CVE-2025-55008: AuthKit React Router Info Disclosure Flaw

CVE-2025-55008 is an information disclosure vulnerability in AuthKit for React Router 7+ that exposes authentication tokens in browser HTML. This article covers the technical details, affected versions, and mitigation.

Published: June 9, 2026

CVE-2025-55008 Overview

CVE-2025-55008 affects the @workos-inc/authkit-react-router library, which provides authentication and session management helpers for WorkOS and AuthKit on React Router 7+. Versions 0.6.1 and below return sensitive authentication artifacts — specifically sealedSession and accessToken — from the authkitLoader. React Router serializes loader return values into the page, causing these secrets to be rendered into the browser HTML where they are accessible to any client-side script or local observer. The issue is fixed in version 0.7.0. This is an information exposure flaw classified as [CWE-200].

Critical Impact

Session tokens and access tokens rendered in browser HTML can be harvested by malicious scripts, browser extensions, or anyone with access to the rendered page, enabling session hijacking and impersonation of authenticated users.

Affected Products

  • @workos-inc/authkit-react-router versions 0.6.1 and below
  • Applications using React Router 7+ with WorkOS AuthKit integration
  • Server-side rendered React Router applications consuming authkitLoader

Discovery Timeline

  • 2025-08-09 - CVE-2025-55008 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-55008

Vulnerability Analysis

The authkitLoader helper in @workos-inc/authkit-react-router returns an AuthorizedData object that includes the user's accessToken and sealedSession. React Router serializes loader return values and embeds them in the server-rendered HTML to hydrate the client. As a result, both secrets travel from the server to the browser inside the document body, where they remain visible in the DOM and accessible to any JavaScript executing in the page context.

The accessToken is a bearer credential used to authenticate API requests on behalf of the user. The sealedSession is the encrypted session payload normally intended to live only in an HTTP-only cookie. Exposing either value defeats the protections that HTTP-only and Secure cookie flags provide.

Root Cause

The root cause is an interface design flaw. The AuthorizedData and UnauthorizedData types declared accessToken and sealedSession as fields returned from the loader. Because React Router automatically serializes loader return values for client consumption, any field placed on these objects is exposed to the browser. The library did not separate server-only secrets from client-safe session metadata.

Attack Vector

An attacker with the ability to read the rendered HTML or execute JavaScript in the page can extract the tokens. Realistic vectors include cross-site scripting in any third-party dependency, malicious browser extensions, shared workstations, server logs that capture full HTML responses, and HTML caching layers. The exposed accessToken can be replayed against the WorkOS API, and the sealedSession can be used to resume the user's authenticated session.

typescript
// Patch from src/interfaces.ts - removed fields
 export interface AuthorizedData {
   user: User;
   sessionId: string;
-  accessToken: string;
   organizationId: string | null;
   role: string | null;
   permissions: string[];
   entitlements: string[];
   featureFlags: string[];
   impersonator: Impersonator | null;
-  sealedSession: string;
 }

 export interface UnauthorizedData {
   user: null;
   sessionId: null;
-  accessToken: null;
   organizationId: null;
   role: null;
   permissions: null;
   entitlements: null;
   featureFlags: null;
   impersonator: null;
-  sealedSession: null;
 }

Source: GitHub Commit 607caac

The fix removes the secret fields from the loader's serialized payload and introduces a server-side getAccessToken() accessor instead:

typescript
// Patch from src/session.ts - accessor replaces direct field
 type AuthLoader<Data> = (
-  args: LoaderFunctionArgs & { auth: AuthorizedData | UnauthorizedData },
+  args: LoaderFunctionArgs & { auth: AuthorizedData | UnauthorizedData; getAccessToken: () => string | null },
 ) => LoaderReturnValue<Data>;

-type AuthorizedAuthLoader<Data> = (args: LoaderFunctionArgs & { auth: AuthorizedData }) => LoaderReturnValue<Data>;
+type AuthorizedAuthLoader<Data> = (
+  args: LoaderFunctionArgs & { auth: AuthorizedData; getAccessToken: () => string },
+) => LoaderReturnValue<Data>;

Source: GitHub Commit 607caac

Detection Methods for CVE-2025-55008

Indicators of Compromise

  • Presence of accessToken or sealedSession strings inside server-rendered HTML responses or hydration payloads such as __remixContext or window.__staticRouterHydrationData.
  • Authentication API calls originating from IP addresses or user agents that do not match the legitimate session owner.
  • WorkOS access token usage outside of expected client domains or refresh patterns.

Detection Strategies

  • Inspect production HTML output for any occurrence of accessToken or sealedSession keys in the serialized loader data.
  • Run dependency inventory queries to identify projects with @workos-inc/authkit-react-router at version 0.6.1 or earlier in package.json and lockfiles.
  • Add an automated CI check that fails the build when the rendered HTML for authenticated routes contains a JWT-shaped pattern matching the access token format.

Monitoring Recommendations

  • Monitor WorkOS audit logs for token reuse from unexpected geolocations or concurrent sessions tied to the same user.
  • Alert on anomalous spikes in /authkit or session refresh endpoint traffic that may indicate replayed sealedSession values.
  • Review web server and CDN logs for cached HTML pages of authenticated routes that may persist exposed tokens.

How to Mitigate CVE-2025-55008

Immediate Actions Required

  • Upgrade @workos-inc/authkit-react-router to version 0.7.0 or later in all projects.
  • Rotate the WorkOS session signing keys so that any previously exposed sealedSession values are invalidated.
  • Revoke active access tokens and force re-authentication for users who logged in while a vulnerable version was deployed.
  • Audit any caches, logs, or analytics pipelines that may have captured rendered HTML containing the exposed secrets.

Patch Information

The fix is available in @workos-inc/authkit-react-router v0.7.0. The patch removes accessToken and sealedSession from the AuthorizedData and UnauthorizedData interfaces and introduces a server-side getAccessToken() callback that is never serialized to the client. See the GitHub Release v0.7.0 and the GitHub Security Advisory GHSA-vqvc-9q8x-vmq6 for full details.

Workarounds

  • If upgrading immediately is not possible, wrap authkitLoader with a custom loader that strips accessToken and sealedSession from the return value before it reaches the client.
  • Move all access-token-dependent logic to server-side actions and loaders, and never reference these fields in client components.
  • Apply strict Content Security Policy (CSP) headers to reduce the risk of third-party script injection harvesting the exposed values.
bash
# Upgrade to the patched version
npm install @workos-inc/authkit-react-router@^0.7.0

# Verify the installed version
npm ls @workos-inc/authkit-react-router

# Audit for residual occurrences in lockfiles
grep -R "authkit-react-router" package-lock.json yarn.lock pnpm-lock.yaml

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechWorkos

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-200
  • Technical References
  • GitHub Commit Changes

  • GitHub Release v0.7.0

  • GitHub Security Advisory GHSA-vqvc-9q8x-vmq6
  • Related CVEs
  • CVE-2026-42565: WorkOS AuthKit Open Redirect 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