Intel

AIKIDO-2025-10127

remix-auth-oauth2 is vulnerable to Cross-Site Request Forgery (CSRF)

Cross-Site Request Forgery (CSRF) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 3, 2025

30

Low Risk

This Affects:

jsremix-auth-oauth2
3.0.0 - 3.2.2
Fixed in 3.3.0
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to Cross-site Request Forgery (CSRF) attacks due to improper validation of the state URL parameter. Without proper validation, attackers could exploit this flaw for CSRF or impersonation attacks. Similar issues have previously enabled phishing attempts by manipulating error messages. In recent updates, remix-auth-oauth2 moved state management from session storage to cookies, requiring earlier validation in the handler. This patch ensures that only legitimate OAuth2 requests proceed while unauthorized attempts trigger a generic error page.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

remix-auth-oauth2 is vulnerable to Cross-Site Request Forgery (CSRF) in versions 3.0.0 - 3.2.2.

How to fix this

Upgrade the remix-auth-oauth2 library to the patch version.