CVE-2023-25572React-Admin vulnerable to Cross-Site-Scripting attack on `<RichTextField>`
- 5.4MediumCVSS base score
- 0.69%Exploitation in 30 daysEPSS · top 46% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By GitHub_M
- 6 days later
· 6 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.69% · top 46% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Affected products
- affected < 3.19.12
- affected >= 4.0.0, < 4.7.6
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmra-ui-materialuiGHSA-5jcr-82fh-339v (opens in a new tab)
- npmreact-adminGHSA-5jcr-82fh-339v (opens in a new tab)
References
References5
- https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/marmelab/react-admin/pull/8644 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/marmelab/react-admin/pull/8645 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/marmelab/react-admin/releases/tag/v3.19.12 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/marmelab/react-admin/releases/tag/v4.7.6 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-0631 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-5jcr-82fh-339v (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-25572)Record last updated .