The AuthKit React Router Library rendered sensitive auth data in HTML
High severity
GitHub Reviewed
Published
Aug 8, 2025
in
workos/authkit-react-router
•
Updated Aug 11, 2025
Description
Published to the GitHub Advisory Database
Aug 8, 2025
Reviewed
Aug 8, 2025
Published by the National Vulnerability Database
Aug 9, 2025
Last updated
Aug 11, 2025
In versions before
0.7.0
,@workos-inc/authkit-react-router
exposed sensitive authentication artifacts — specificallysealedSession
andaccessToken
by returning them from theauthkitLoader
. This caused them to be rendered into the browser HTML.Impact
This information disclosure could lead to session hijacking in environments where cross-site scripting (XSS), malicious browser extensions, or local inspection is possible.
Patches
Patched in https://github.com/workos/authkit-react-router/releases/tag/v0.7.0
In patched versions:
sealedSession
andaccessToken
are no longer returned by default from theauthkitLoader
.References