Live threats

All CVEs / Marmelab

CVE-2023-25572Marmelab Ra-ui-materialui

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
0.7%
probability of exploitation in 30 days · percentile 47
Auth required
Yes
Published
Feb 13, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ra-ui-materialui.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm ra-ui-materialui ≥ 4.0.0 < 4.7.6 4.7.6 npm install ra-ui-materialui@4.7.6
npm ra-ui-materialui < 3.19.12 3.19.12 npm install ra-ui-materialui@3.19.12
npm react-admin < 3.19.12 3.19.12 npm install react-admin@3.19.12
npm react-admin ≥ 4.0.0 < 4.7.6 4.7.6 npm install react-admin@4.7.6

Per OSV / GitHub Advisories (GHSA-5jcr-82fh-339v). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
marmelabra-ui-materialui< 3.9.12
marmelabra-ui-materialui≥ 4.0.0 < 4.7.6
marmelabreact-admin< 3.9.12
marmelabreact-admin≥ 4.0.0 < 4.7.6

Official sources

References

Links published by the sources. Open them with care.