CVE-2023-25572 json
React-Admin vulnerable to Cross-Site-Scripting attack on `<RichTextField>`
published 3y ago modified 2mo ago also GHSA-5jcr-82fh-339v , EUVD-2023-0631
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 53%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm react-admin 3.19.12, 4.7.6
- npm ra-ui-materialui 3.19.12, 4.7.6
- marmelab ra-ui-materialui 3.9.12, 4.7.6
- marmelab react-admin 3.9.12, 4.7.6
- github.com/marmelab/react-admin#8644 pull request
- github.com/marmelab/react-admin#8645 pull request
- github.com/marmelab/react-admin/releases/tag/v3.19.12 release
- github.com/marmelab/react-admin/releases/tag/v4.7.6 release
Is CVE-2023-25572 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.69% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-15).
Exploits and checks
- github.com https://github.com/marmelab/react-admin/pull/8644 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | react-admin | <3.19.12 >=4.0.0, <4.7.6 |
3.19.12 4.7.6 |
| npm | ra-ui-materialui | >=4.0.0, <4.7.6 <3.19.12 |
4.7.6 3.19.12 |
Affected products
- marmelab react-admin
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/marmelab/react-admin/pull/8644
web, exploit, patch
-
github.com
/marmelab/react-admin/pull/8645
web, patch
-
github.com
/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v
web, exploit, mitigation, vendor-advisory
-
github.com
/marmelab/react-admin/releases/tag/v3.19.12
web, release-notes
-
github.com
/marmelab/react-admin/releases/tag/v4.7.6
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2023-25572
advisory
-
github.com
/marmelab/react-admin
package
Sources
- CVE List CVE-2023-25572
- GitHub Advisory GHSA-5jcr-82fh-339v
- NVD CVE-2023-25572
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.