Category

React

Security vulnerabilities and automated fixes for react issues

6 posts found

high8 min

How Unsafe eval() in JavaScript Happens in React Components and How to Fix It

A high-severity code injection vulnerability was discovered in `TurnPlanner.tsx`, where the `parseInputExpr` function used JavaScript's `Function` constructor — effectively `eval()` — to evaluate user-provided mathematical expressions. The regex guard in place only checked for the presence of arithmetic operators, not whether the input was safe to execute, leaving the door open for arbitrary JavaScript injection. A targeted whitelist fix was applied to reject any input containing characters outs

#injection#react#typescript+3 more
A
anupamme
Aug 26, 2026
high7 min

How React Router SSR XSS in ScrollRestoration Happens and How to Fix It

CVE-2026-21884 is a high-severity cross-site scripting (XSS) vulnerability in React Router's ScrollRestoration component that affects server-side rendering (SSR) implementations. The vulnerability was introduced through unsafe handling of scroll position data that could be influenced by untrusted input. This fix upgrades react-router from version 7.9.5 to 8.3.0, replacing the vulnerable `cookie` dependency with `cookie-es` and removing the `set-cookie-parser` dependency entirely.

#xss#react#ssr+2 more
A
anupamme
Aug 23, 2026
high8 min

How CSRF protection gaps happen in Express.js applications and how to fix it

A high-severity security vulnerability was discovered in a React-Express booking application where the Express backend lacked CSRF middleware protection, while the frontend's coupon code input field in `Listing.jsx` allowed unrestricted user input. The fix implemented strict input validation using a regex pattern that whitelists only alphanumeric characters, hyphens, and underscores, preventing malicious payloads from reaching backend database operations.

#csrf#express#security+4 more
A
anupamme
Aug 16, 2026
critical7 min

How missing authentication checks happen in React route handlers and how to fix it

A critical vulnerability in ManageMembers.jsx and Settings.jsx allowed any user with network access to perform privileged operations like adding, editing, and deleting members without authentication. The fix implements route-level authentication checks using React Router's Navigate component to redirect unauthenticated users to the login page.

#react#authentication#security+4 more
A
anupamme
Aug 1, 2026
critical8 min

How unlimited batch API calls happen in React JSX and how to fix it

A missing batch size limit in `BatchModeRunner.jsx` allowed users to trigger unlimited LLM API calls by pasting thousands of items into the batch input field. This could exhaust shared API quotas in organizational settings where a single API key is distributed across multiple users. The fix introduces a hard cap of 25 items (`MAX_BATCH_SIZE = 25`) enforced directly in the `canRun()` validation function.

#security#rate-limiting#react+4 more
A
anupamme
Jul 24, 2026
high8 min

Securing Web Radar Apps: Fixing Unauthenticated Real-Time Data Exposure

A high-severity vulnerability was discovered and patched in a web radar application that exposed real-time game state data — including player positions and map data — to any unauthenticated user on the local network. Without an authentication mechanism, sensitive memory-derived data was freely accessible to anyone who could reach the server's URL. This fix closes that open door and serves as a critical reminder that internal tools need security just as much as public-facing applications.

#security#authentication#information-disclosure+4 more
O
orbisai0security
May 15, 2026