
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability CVE-2023-25572 affects react-admin, a frontend framework for building browser applications on top of REST/GraphQL APIs. The vulnerability was discovered in versions prior to 3.19.12 and 4.7.6, and was disclosed on February 13, 2023. The issue specifically affects the RichTextField component, which outputs field values using dangerouslySetInnerHTML without proper client-side sanitization (GitHub Advisory).
The vulnerability is classified as a Cross-Site Scripting (XSS) issue with a CVSS v3.1 score of 5.4 (Medium severity). The RichTextField component was found to be using dangerouslySetInnerHTML without implementing client-side sanitization, potentially allowing malicious HTML content to be executed if the data wasn't properly sanitized server-side. The vulnerability is tracked as CWE-79, which is a common classification for XSS issues (Snyk).
All React applications built with react-admin and using the RichTextField component are affected by this vulnerability. If the data isn't sanitized server-side, attackers could potentially execute malicious scripts through cross-site scripting attacks, potentially leading to data theft or session hijacking (GitHub Advisory).
The vulnerability has been patched in versions 3.19.12 and 4.7.6, which now use DOMPurify to escape HTML before outputting it with React and dangerouslySetInnerHTML. For users who cannot immediately upgrade, a workaround exists if HTML data is already being sanitized server-side. Alternatively, users can replace the RichTextField with a custom field implementing manual sanitization (GitHub Release, GitHub Release).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."