# CVE-2023-25572: React-Admin vulnerable to Cross-Site-Scripting attack on `<RichTextField>`

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-02-13T20:49:54.340Z
- Modified: 2026-09-10T03:49:56.699Z
- Also known as: GHSA-5jcr-82fh-339v
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- marmelab react-admin: < 3.19.12; >= 4.0.0, < 4.7.6; before 3.9.12; from 4.0.0 before 4.7.6
- react-admin (npm): before 3.19.12; from 4.0.0 before 4.7.6
- ra-ui-materialui (npm): from 4.0.0 before 4.7.6; before 3.19.12
- marmelab ra-ui-materialui: before 3.9.12; from 4.0.0 before 4.7.6

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v> (exploit, mitigation, vendor-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2023-25572> (advisory)
- <https://github.com/marmelab/react-admin> (package)

## Sources

- CVE List: [CVE-2023-25572](https://www.cve.org/CVERecord?id=CVE-2023-25572), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-5jcr-82fh-339v](https://github.com/advisories/GHSA-5jcr-82fh-339v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-25572](https://nvd.nist.gov/vuln/detail/CVE-2023-25572), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-25572 · Whole record: https://cve.day/CVE-2023-25572.json · Rebuilt by cve.day 2026-11-25T22:58:21.949Z
