CVE-2025-55009: The AuthKit Remix Library renders sensitive auth data in HTML
Summary Before 0.15.0, @workos-inc/authkit-remix returned sensitive authentication artifacts from the authkitLoader, specifically sealedSession and accessToken. Because these values were returned from the loader, they were embedded into the server-rendered HTML and became readable by any script with access to the page’s DOM (e.g., in the presence of XSS or a malicious browser extension).
Published Aug 8, 2025 · Updated Sep 25, 2025
Affected packages
@workos-inc/authkit-remix
- Ecosystem
- npm
- Affected
- < 0.15.0
- Fixed in
- 0.15.0
- Check
npm ls @workos-inc/authkit-remix
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Before 0.15.0, @workos-inc/authkit-remix returned sensitive authentication artifacts from the authkitLoader, specifically sealedSession and accessToken. Because these values were returned from the loader, they were embedded into the server-rendered HTML and became readable by any script with access to the page’s DOM (e.g., in the presence of XSS or a malicious browser extension).
- Impact: Exposure of these secrets can lead to session hijacking and unauthorized API access.
- Fix: Version
0.15.0changes the default behavior so the loader no longer returnssealedSession/accessToken. A secure server-side mechanism is provided to fetch an access token when needed.
Patches
Patched in v0.15.0.
Credited to cai0duque.
References
- https://github.com/workos/authkit-remix/security/advisories/GHSA-v3gr-w9gf-23cx
- https://github.com/workos/authkit-remix/commit/20102afc74bf3dd5150a975a098067fb406b90b6
- https://nvd.nist.gov/vuln/detail/CVE-2025-55009
- https://github.com/workos/authkit-remix/releases/tag/v0.15.0
- https://osv.dev/vulnerability/CVE-2025-55009
- https://osv.dev/vulnerability/GHSA-v3gr-w9gf-23cx
- https://github.com/advisories/GHSA-v3gr-w9gf-23cx
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
