CVE-2023-25572 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/marmelab/react-admin/pull/8644 | CVE | ExploitPatch |
| https://github.com/marmelab/react-admin/pull/8645 | CVE | Patch |
| https://github.com/marmelab/react-admin/releases/tag/v3.19.12 | CVE | Release Notes |
| https://github.com/marmelab/react-admin/releases/tag/v4.7.6 | CVE | Release Notes |
| https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v | CVE | ExploitMitigationVendor Advisory |
| https://github.com/marmelab/react-admin/pull/8644 | [email protected] | ExploitPatch |
| https://github.com/marmelab/react-admin/pull/8645 | [email protected] | Patch |
| https://github.com/marmelab/react-admin/releases/tag/v3.19.12 | [email protected] | Release Notes |
| https://github.com/marmelab/react-admin/releases/tag/v4.7.6 | [email protected] | Release Notes |
| https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| marmelab ra-ui-materialui | < 3.9.12 >= 4.0.0, < 4.7.6 |
CPE
Remediation
| |
| marmelab react-admin | < 3.9.12 >= 4.0.0, < 4.7.6 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Feb 22, 2023 | Initial Analysis | [email protected] |