XSS in Marmelab Ra-Ui-Materialui
CVE-2023-25572
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.007 (51.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 51st percentile — 51.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.007 · newest: 0.007 · change: 0.000
Affected products
- Marmelab Ra-Ui-Materialui
- Marmelab React-Admin — versions < 3.19.12, >= 4.0.0, < 4.7.6
Weakness classification (CWE)
References
- github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v (Exploit, Mitigation, Vendor Advisory)
- github.com/marmelab/react-admin/pull/8644 (Exploit, Patch)
- github.com/marmelab/react-admin/pull/8645 (Patch)
- github.com/marmelab/react-admin/releases/tag/v3.19.12 (Release Notes)
- github.com/marmelab/react-admin/releases/tag/v4.7.6 (Release Notes)
Frequently asked questions
- What is CVE-2023-25572?
- CVE-2023-25572 is a medium-severity vulnerability in Marmelab Ra-Ui-Materialui, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2023-02-13.
- How severe is CVE-2023-25572?
- Medium severity. CVSS v3 base score is 5.4 out of 10.