Intel

AIKIDO-2025-10683

react-on-rails is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 9, 2025

50

Medium Risk

This Affects:

JSreact-on-rails
11.0.8 - 16.0.1
Fixed in 16.1.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Cross-Site Scripting (XSS) due to insufficient escaping of user input in dynamic DOM selectors and JavaScript contexts, which could allow an attacker to inject malicious scripts through crafted inputs. This vulnerability stems from the lack of proper sanitization in component and store script generation, enabling arbitrary code execution. An attacker might exploit this by manipulating dynamic IDs without CSS.escape() or submitting unescaped user data that executes in other users' browsers, potentially leading to session hijacking or data theft.

Who does this affect?

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

Background info

react-on-rails is vulnerable to Cross-site Scripting (XSS) in versions 11.0.8 - 16.0.1.

How to fix this

Upgrade the react-on-rails library to the patch version.