CVE-2025-55008
JavaScript vulnerability analysis and mitigation

Overview

The CVE-2025-55008 affects the AuthKit library for React Router 7+, specifically versions 0.6.1 and below of @workos-inc/authkit-react-router. The vulnerability was discovered and disclosed on August 8, 2025, involving the exposure of sensitive authentication artifacts. The library, which provides helpers for authentication and session management using WorkOS & AuthKit with React Router, inadvertently exposed sensitive authentication data - specifically sealedSession and accessToken - by returning them from the authkitLoader, causing them to be rendered in the browser HTML (GitHub Advisory).

Technical details

The vulnerability is classified with a CVSS v3.1 base score of 7.1 (High), with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L. The technical issue stems from the authkitLoader function returning sensitive authentication artifacts (sealedSession and accessToken) in its response, which were then rendered into the browser's HTML output. This implementation flaw exposed critical authentication data that should have remained server-side (GitHub Advisory).

Impact

The exposure of sensitive authentication artifacts could lead to session hijacking in environments where cross-site scripting (XSS), malicious browser extensions, or local inspection is possible. This vulnerability potentially allows attackers to gain unauthorized access to user sessions and impersonate legitimate users (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.7.0 of @workos-inc/authkit-react-router. In the patched version, sealedSession and accessToken are no longer returned by default from the authkitLoader, and a secure server-side mechanism is provided to fetch an access token as needed. Users should upgrade to version 0.7.0 or later to address this security issue (GitHub Release).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management