PT-2023-20171 · Unknown · Ra-Ui-Materialui+1

Daugsbi

+1

·

Published

2023-02-13

·

Updated

2023-02-22

·

CVE-2023-25572

CVSS v3.1

5.4

Medium

VectorAV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions react-admin versions prior to 3.19.12 and 4.7.6 ra-ui-materialui versions prior to 3.19.12 and 4.7.6
Description The issue affects all React applications built with react-admin and using the <RichTextField>. This component outputs the field value using dangerouslySetInnerHTML without client-side sanitization, which can lead to a cross-site scripting (XSS) attack if the data is not sanitized server-side.
Recommendations For versions prior to 3.19.12 and 4.7.6, update to version 3.19.12 or 4.7.6, which use DOMPurify to escape the HTML before outputting it with React and dangerouslySetInnerHTML. As a temporary workaround, users may replace the <RichTextField> with a custom field that performs sanitization manually. If you already sanitize HTML data server-side, you do not need to upgrade.

Exploit

Fix

XSS

Weakness Enumeration

Related Identifiers

CVE-2023-25572
GHSA-5JCR-82FH-339V

Affected Products

Ra-Ui-Materialui
React-Admin