{"id":"CVE-2023-25572","summary":"React-Admin vulnerable to Cross-Site-Scripting attack on `\u003cRichTextField\u003e`","details":"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 `\u003cRichTextField\u003e` are affected. `\u003cRichTextField\u003e` 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 `\u003cRichTextField\u003e` by a custom field doing sanitization by hand.\n","aliases":["GHSA-5jcr-82fh-339v"],"modified":"2026-04-02T08:53:36.351559Z","published":"2023-02-13T20:49:54.340Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/25xxx/CVE-2023-25572.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://github.com/marmelab/react-admin/releases/tag/v3.19.12"},{"type":"WEB","url":"https://github.com/marmelab/react-admin/releases/tag/v4.7.6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/25xxx/CVE-2023-25572.json"},{"type":"ADVISORY","url":"https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25572"},{"type":"FIX","url":"https://github.com/marmelab/react-admin/pull/8644"},{"type":"FIX","url":"https://github.com/marmelab/react-admin/pull/8645"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/marmelab/react-admin","events":[{"introduced":"0"},{"fixed":"d295fc971a11cb13174405a50b08826d0de22e67"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"3.19.12"}]}},{"type":"GIT","repo":"https://github.com/marmelab/react-admin","events":[{"introduced":"712c2f2ad48f90270567c49e662c0f4d03551268"},{"fixed":"ebe2e35320bb6882f6adba7831f4799809a11f28"}],"database_specific":{"versions":[{"introduced":"4.0.0"},{"fixed":"4.7.6"}]}}],"versions":["v0.1.0","v0.2.0","v0.3.0","v0.3.1","v0.4.0","v0.5.0","v0.5.1","v0.5.2","v0.5.3","v0.5.4","v0.6.0","v0.6.1","v0.6.2","v0.7.0","v0.7.1","v0.7.2","v0.8.0","v0.8.1","v0.8.2","v0.8.3","v0.8.4","v0.9.0","v0.9.1","v0.9.2","v0.9.3","v0.9.4","v1.0.0","v1.0.1","v1.0.2","v1.1.0","v1.1.1","v1.1.2","v1.2.0","v1.2.1","v1.2.2","v1.2.3","v1.3.0","v1.3.1","v1.3.2","v1.3.3","v1.3.4","v1.4.0","v1.4.1","v2.0.0","v2.0.0-RC1","v2.0.0-RC2","v2.0.0-RC3","v2.0.0-RC4","v2.0.0-alpha1","v2.0.0-alpha2","v2.0.0-alpha3","v2.0.0-beta1","v2.0.0-beta2","v2.0.0-beta3","v2.0.0-beta4","v2.0.2","v2.0.3","v2.0.4","v2.1.0","v2.1.1","v2.1.2","v2.1.3","v2.1.4","v2.1.5","v2.2.0","v2.2.2","v2.2.3","v2.2.4","v2.3.0","v2.3.1","v2.3.2","v2.3.3","v2.3.4","v2.4.0","v2.4.0-0","v2.4.1","v2.4.2","v2.4.3","v2.4.4","v2.5.0","v2.5.1","v2.5.2","v2.5.3","v2.6.0","v2.6.1","v2.6.2","v2.6.3","v2.6.4","v2.7.0","v2.7.1","v2.7.2","v2.7.3","v2.8.0","v2.8.1","v2.8.2","v2.8.3","v2.8.4","v2.8.5","v2.8.6","v2.9.0","v2.9.1","v2.9.2","v2.9.3","v2.9.4","v2.9.5","v2.9.6","v2.9.7","v2.9.8","v2.9.9","v3.0.0","v3.0.0-alpha.0","v3.0.0-alpha.1","v3.0.0-alpha.2","v3.0.0-alpha.3","v3.0.0-alpha.4","v3.0.0-beta.0","v3.0.0-beta.1","v3.0.0-beta.2","v3.0.0-beta.3","v3.0.0-beta.4","v3.0.0-beta.5","v3.0.0-beta.6","v3.0.1","v3.0.2","v3.0.3","v3.0.4","v3.1.0","v3.1.1","v3.1.2","v3.1.3","v3.1.4","v3.10.0","v3.10.1","v3.10.2","v3.10.3","v3.10.4","v3.11.0","v3.11.1","v3.11.2","v3.11.3","v3.11.4","v3.12.0","v3.12.1","v3.12.2","v3.12.3","v3.12.4","v3.12.5","v3.13.0","v3.13.1","v3.13.2","v3.13.3","v3.13.4","v3.13.5","v3.14.0","v3.14.1","v3.14.2","v3.14.3","v3.14.4","v3.14.5","v3.15.0","v3.15.1","v3.15.2","v3.16.0","v3.16.1","v3.16.2","v3.16.3","v3.16.4","v3.16.5","v3.16.6","v3.17.0","v3.17.1","v3.17.2","v3.17.3","v3.18.0","v3.18.1","v3.18.2","v3.18.3","v3.19.0","v3.19.1","v3.19.10","v3.19.11","v3.19.2","v3.19.3","v3.19.4","v3.19.5","v3.19.6","v3.19.7","v3.19.8","v3.19.9","v3.2.0","v3.2.1","v3.2.2","v3.2.3","v3.2.4","v3.3.0","v3.3.1","v3.3.2","v3.3.3","v3.3.4","v3.4.0","v3.4.1","v3.4.2","v3.4.3","v3.4.4","v3.5.0","v3.5.1","v3.5.2","v3.5.3","v3.5.4","v3.5.5","v3.5.6","v3.6.0","v3.6.1","v3.6.2","v3.6.3","v3.7.0","v3.7.1","v3.7.2","v3.8.0","v3.8.1","v3.8.2","v3.8.3","v3.8.4","v3.8.5","v3.9.0","v3.9.0-beta.1","v3.9.0-beta.2","v3.9.0-beta.3","v3.9.1","v3.9.2","v3.9.3","v3.9.4","v3.9.5","v3.9.6","v4.0.0","v4.0.0-4.0.0-beta.1.0","v4.0.0-alpha.0","v4.0.0-alpha.1","v4.0.0-alpha.2","v4.0.0-beta.1.0","v4.0.0-beta.2","v4.0.0-beta.3","v4.0.0-rc.0","v4.0.0-rc.1","v4.0.1","v4.0.2","v4.0.3","v4.0.4","v4.0.5","v4.1.0","v4.1.1","v4.1.2","v4.1.3","v4.1.4","v4.1.5","v4.1.6","v4.10.0","v4.10.1","v4.10.2","v4.10.3","v4.10.4","v4.10.5","v4.10.6","v4.11.0","v4.11.1","v4.11.2","v4.11.3","v4.11.4","v4.12.0","v4.12.1","v4.12.2","v4.12.3","v4.12.4","v4.13.0","v4.13.1","v4.13.2","v4.13.3","v4.13.4","v4.14.0","v4.14.1","v4.14.2","v4.14.3","v4.14.4","v4.14.5","v4.14.6","v4.15.0","v4.15.1","v4.15.2","v4.15.3","v4.15.4","v4.15.5","v4.16.0","v4.16.1","v4.16.10","v4.16.11","v4.16.12","v4.16.13","v4.16.14","v4.16.15","v4.16.16","v4.16.17","v4.16.18","v4.16.19","v4.16.2","v4.16.20","v4.16.3","v4.16.4","v4.16.5","v4.16.6","v4.16.7","v4.16.8","v4.16.9","v4.2.0","v4.2.1","v4.2.2","v4.2.3","v4.2.4","v4.2.5","v4.2.6","v4.2.7","v4.2.8","v4.3.0","v4.3.1","v4.3.2","v4.3.3","v4.3.4","v4.4.0","v4.4.1","v4.4.2","v4.4.3","v4.4.4","v4.5.0","v4.5.1","v4.5.2","v4.5.3","v4.5.4","v4.6.0","v4.6.1","v4.6.2","v4.6.3","v4.7.0","v4.7.1","v4.7.2","v4.7.3","v4.7.4","v4.7.5","v4.7.6","v4.8.0","v4.8.1","v4.8.2","v4.8.3","v4.8.4","v4.9.0","v4.9.1","v4.9.2","v4.9.3","v4.9.4","v5.0.0","v5.0.0-alpha.0","v5.0.0-alpha.1","v5.0.0-beta.0","v5.0.0-beta.1","v5.0.0-beta.2","v5.0.0-beta.3","v5.0.0-rc.0","v5.0.0-rc.1","v5.0.1","v5.0.2","v5.0.3","v5.0.4","v5.0.5","v5.1.0","v5.1.1","v5.1.2","v5.1.3","v5.1.4","v5.1.5","v5.10.0","v5.10.1","v5.10.2","v5.11.0","v5.11.1","v5.11.2","v5.11.3","v5.11.4","v5.12.0","v5.12.1","v5.12.2","v5.12.3","v5.13.0","v5.13.1","v5.13.2","v5.13.3","v5.13.4","v5.13.5","v5.13.6","v5.14.0","v5.14.1","v5.14.2","v5.14.3","v5.14.4","v5.14.5","v5.2.0","v5.2.1","v5.2.2","v5.2.3","v5.3.0","v5.3.1","v5.3.2","v5.3.3","v5.3.4","v5.4.0","v5.4.1","v5.4.2","v5.4.3","v5.4.4","v5.5.0","v5.5.1","v5.5.2","v5.5.3","v5.5.4","v5.6.0","v5.6.1","v5.6.2","v5.6.3","v5.6.4","v5.7.0","v5.7.1","v5.7.2","v5.7.3","v5.7.4","v5.8.0","v5.8.1","v5.8.2","v5.8.3","v5.8.4","v5.9.0","v5.9.1","v5.9.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-25572.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}