Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113350 Overview
CVE-2026-113350 is a stored cross-site scripting (XSS) vulnerability in react-admin versions prior to 5.15.5. The flaw affects the UrlField and FileField components, which render user-controlled URL values from backend records without validating the URL scheme. Attackers who can write to URL-type fields can store javascript: URIs that execute in an administrator's authenticated session when the rendered link is clicked. The weakness is classified as CWE-79, Improper Neutralization of Input During Web Page Generation.
Critical Impact
An authenticated low-privilege user who can influence URL fields can execute arbitrary JavaScript in an administrator's browser context, enabling session abuse and admin-scoped actions.
Affected Products
- react-admin versions prior to 5.15.5
- UrlField component in packages/ra-ui-materialui/src/field/UrlField.tsx
- FileField component rendering URL-type record fields
Discovery Timeline
- 2026-10-20 - CVE-2026-113350 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-113350
Vulnerability Analysis
The vulnerability stems from unsafe handling of URL strings passed to link-rendering components. UrlField and FileField take a URL from a record field and emit an HTML anchor whose href attribute is assigned directly from the record value. React escapes HTML but does not reject dangerous URL schemes such as javascript:. When an administrator clicks the rendered link, the browser evaluates the script in the context of the authenticated admin session.
Stored XSS of this type is particularly impactful in administrative single-page applications. The attacker-controlled payload persists in backend storage and triggers whenever any privileged user interacts with the record view, enabling session abuse, cross-user actions, and silent data exfiltration under the administrator's identity.
Root Cause
The root cause is missing URL scheme validation on fields rendered as hyperlinks. The pre-patch UrlField implementation assigned the record value to an anchor href without checking whether the string began with a safe scheme. The URL specification allows javascript: URIs to include leading C0 control characters, whitespace, mixed casing, and embedded tabs or newlines, so simple string prefix comparisons are insufficient.
Attack Vector
Exploitation requires an attacker who can write to a URL-type backend field consumed by UrlField or FileField, and an administrator who later views and clicks the rendered link. The exploit payload is a javascript: URI, optionally obfuscated with mixed case or control characters to bypass naive filters. The payload executes with the privileges of the viewing user, typically an administrator.
/**
* Return the URL if it can be used as a link href without executing code,
* or undefined otherwise (and log an error)
*
* Rejects javascript: URLs, including obfuscated ones (mixed case,
* whitespace, control characters). Relative URLs are safe.
*
* @example
* getSafeUrl('https://example.com'); // 'https://example.com'
* getSafeUrl('/posts/1'); // '/posts/1'
* getSafeUrl('javascript:alert(1)'); // undefined
*/
export const getSafeUrl = (url: string): string | undefined => {
if (isSafeUrl(url)) {
return url;
}
console.error(`Blocked unsafe URL: ${JSON.stringify(url)}`);
return undefined;
};
/**
* Check that a URL can be used as a link href without executing code
*
* @see getSafeUrl
*/
export const isSafeUrl = (url: string): boolean =>
!isJavaScriptProtocol.test(url);
// A javascript: URL can contain leading C0 control characters or spaces,
// and tabs or newlines anywhere (https://url.spec.whatwg.org/#url-parsing)
Source: react-admin commit d20820a05d. The patch introduces getSafeUrl and isSafeUrl in packages/ra-core/src/util/getSafeUrl.ts and wires it into UrlField and FileField to reject javascript: URIs, including obfuscated variants.
Detection Methods for CVE-2026-113350
Indicators of Compromise
- Record values in URL-type fields that begin with javascript: or contain control characters, tabs, or newlines before the scheme separator.
- Browser console errors matching Blocked unsafe URL: after upgrading to 5.15.5, which indicate historical poisoned records.
- Unexpected administrative actions originating from legitimate admin sessions shortly after viewing a record detail page.
Detection Strategies
- Query backend databases for URL fields whose values match the regular expression ^[\s\\x00-\\x1F]*j[\s\\x00-\\x1F]*a[\s\\x00-\\x1F]*v[\s\\x00-\\x1F]*a[\s\\x00-\\x1F]*s[\s\\x00-\\x1F]*c[\s\\x00-\\x1F]*r[\s\\x00-\\x1F]*i[\s\\x00-\\x1F]*p[\s\\x00-\\x1F]*t[\s\\x00-\\x1F]*: (case-insensitive) to find stored payloads.
- Review application dependency manifests (package.json, package-lock.json, yarn.lock) for react-admin versions below 5.15.5.
- Enable a Content Security Policy (CSP) with script-src restrictions and monitor report-uri or report-to endpoints for inline script violations originating from admin routes.
Monitoring Recommendations
- Monitor administrative API audit logs for anomalous mutations performed immediately after a record view event.
- Track browser-side CSP violation reports and correlate them with the authenticated user and record identifier.
- Alert on writes to URL-typed backend fields that fail server-side scheme validation.
How to Mitigate CVE-2026-113350
Immediate Actions Required
- Upgrade react-admin to version 5.15.5 or later across all applications that use UrlField or FileField.
- Audit all backend records containing URL fields and remove or neutralize entries using the javascript: scheme.
- Enforce server-side URL scheme allowlists on any API that accepts URL-type input, independent of the client-side fix.
Patch Information
The fix is included in react-admin v5.15.5 and implemented in commit d20820a05d. The patch adds the getSafeUrl and isSafeUrl utilities in packages/ra-core/src/util/getSafeUrl.ts and applies them inside UrlField and FileField before setting the anchor href. See the tracking issue in GitHub Issue #11408 and the VulnCheck advisory for additional context.
Workarounds
- Replace UrlField and FileField with a custom field that calls a local isSafeUrl helper rejecting non-http(s) and non-relative URLs before rendering.
- Deploy a strict Content Security Policy that forbids inline script execution and disallows javascript: URIs via script-src and navigate-to directives.
- Restrict write access to URL-type fields to trusted roles until the upgrade is deployed.
# Upgrade react-admin to the patched release
npm install react-admin@5.15.5
# Or with yarn
yarn add react-admin@5.15.5
# Verify the installed version
npm ls react-admin
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

