CVE-2025-55008: @workos-inc/authkit-react-router Exposes Sensitive Authentication Data in HTML

Summary

08/08/2025
Yes i
High
7.1

CVE-2025-55008: The AuthKit React Router Library rendered sensitive auth data in HTML. Affects @workos-inc/authkit-react-router versions < 0.7.0. Fixed in 0.7.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The @workos-inc/authkit-react-router package is a library designed for integrating authentication features into React applications using the WorkOS platform. It provides developers with tools to manage user sessions and authentication flows seamlessly. However, prior to version 0.7.0, the library had a significant vulnerability that exposed sensitive authentication artifacts directly in the rendered HTML, potentially compromising user security.

Vulnerability Detail

In versions before 0.7.0, the @workos-inc/authkit-react-router package inadvertently exposed sensitive authentication artifacts, specifically 'sealedSession' and 'accessToken', by returning them from the 'authkitLoader'. This flaw allowed these sensitive tokens to be rendered in the browser's HTML, leading to potential information disclosure. If an attacker can exploit this vulnerability, they could hijack user sessions in environments susceptible to cross-site scripting (XSS), malicious browser extensions, or local inspection.

How To Fix

Minimum fixed version

0.7.0

This is the first release that contains the fix.

npm install @workos-inc/authkit-react-router@0.7.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, you can avoid using the 'authkitLoader' until you have updated to the patched version. Additionally, ensure that your application has proper security measures in place to mitigate the risk of XSS attacks.

Conclusion

The @workos-inc/authkit-react-router package had a significant vulnerability that exposed sensitive authentication data in HTML prior to version 0.7.0. It is crucial for developers using this package to update to the patched version to protect their applications from potential session hijacking attacks.

See every vulnerability recorded for @workos-inc/authkit-react-router →

Share this vulnerability

FAQ

CVE-2025-55008 is a vulnerability in the @workos-inc/authkit-react-router package that exposes sensitive authentication data in the HTML rendered by the application.

This vulnerability can lead to session hijacking, allowing attackers to gain unauthorized access to user accounts if they can exploit the exposed tokens.

If you are using a version prior to 0.7.0, you should update the package to the latest version immediately to mitigate the risk.

While there are no specific known exploits reported, the nature of the vulnerability makes it susceptible to attacks that leverage XSS or similar techniques.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

0.7.0

This is the first release that contains the fix.

npm install @workos-inc/authkit-react-router@0.7.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback