CVE-2023-25572
MEDIUM 5.4CVSS 3.1Cross-Site-Scripting attack on `<RichTextField>`
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.
- Published
- 13 Feb 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-5jcr-82fh-339v
- Sources
- NVDJSONOSV GHSA-5jcr-82fh-339vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | marmelab | ra-ui-materialuicpe:2.3:a:marmelab:ra-ui-materialui:*:*:*:*:*:node.js:*:* |
< 3.9.12 | 3.9.12 |
| NVD | marmelab | ra-ui-materialuicpe:2.3:a:marmelab:ra-ui-materialui:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.7.6 | 4.7.6 |
| NVD | marmelab | react-admincpe:2.3:a:marmelab:react-admin:*:*:*:*:*:node.js:*:* |
< 3.9.12 | 3.9.12 |
| NVD | marmelab | react-admincpe:2.3:a:marmelab:react-admin:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.7.6 | 4.7.6 |
| OSV | npm | react-admin | < 3.19.12 | 3.19.12 |
| OSV | npm | react-admin | >= 4.0.0, < 4.7.6 | 4.7.6 |
| OSV | npm | ra-ui-materialui | >= 4.0.0, < 4.7.6 | 4.7.6 |
| OSV | npm | ra-ui-materialui | < 3.19.12 | 3.19.12 |
References
- https://github.com/marmelab/react-admin/pull/8644 · Exploit, Patch, WEB
- https://github.com/marmelab/react-admin/pull/8645 · Patch, WEB
- https://github.com/marmelab/react-admin/releases/tag/v3.19.12 · Release Notes, WEB
- https://github.com/marmelab/react-admin/releases/tag/v4.7.6 · Release Notes, WEB
- https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-25572 · ADVISORY
- https://github.com/marmelab/react-admin · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 13 Feb 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 14 Feb 2023)