CVE-2023-25572Marmelab Ra-ui-materialui
Medium 5.4
Follow: this CVE · Marmelab · Marmelab Ra-ui-materialui We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Ra-ui-materialui.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| marmelab | ra-ui-materialui | < 3.9.12 |
| marmelab | ra-ui-materialui | ≥ 4.0.0 < 4.7.6 |
| marmelab | react-admin | < 3.9.12 |
| marmelab | react-admin | ≥ 4.0.0 < 4.7.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Patch
- github.com Patch
- github.com Release Notes
- github.com Release Notes
- github.com Exploit Mitigation Vendor Advisory