CVE-2023-25572

React-Admin vulnerable to Cross-Site-Scripting attack on `<RichTextField>`

MEDIUM
5.4
CVSS Score
Published: February 13, 2023 at 08:49 PM UTC
Updated: June 17, 2026 at 05:41 AM UTC
2 products affected across 1 vendorReact AdminRa UI Materialui

Using react-admin by marmelab?

Get instant alerts when new vulnerabilities affect react-admin - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.4
Exploit prediction
EPSS 0.7%
SSVC
PoC

Description

react-admin is a frontend framework for building browser applications on top of REST/GraphQL APIs. react-admin prior to versions 3.19.12 and 4.7.6, along with ra-ui-materialui prior to 3.19.12 and 4.7.6, are vulnerable to cross-site scripting. All React applications built with react-admin and using the `<RichTextField>` are affected. `<RichTextField>` outputs the field value using `dangerouslySetInnerHTML` without client-side sanitization. If the data isn't sanitized server-side, this opens a possible cross-site scripting (XSS) attack. Versions 3.19.12 and 4.7.6 now use `DOMPurify` to escape the HTML before outputting it with React and `dangerouslySetInnerHTML`. Users who already sanitize HTML data server-side do not need to upgrade. As a workaround, users may replace the `<RichTextField>` by a custom field doing sanitization by hand.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.9.124.0.0 ≤ v < 4.7.6
Affected range stops below 3.9.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.7.6, so it looks safe — our inference, not a vendor statement
v < 3.19.12v < 3.9.12v < 4.7.64.0.0 ≤ v < 4.7.6
Affected range stops below 3.19.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.9.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.7.6, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.4MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card