Description
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.
Recommendation
Update the react-admin package to the latest compatible version. Followings are version details:
Affected version(s): **>= 4.0.0, < 4.7.6 < 3.19.12** Patched version(s): **4.7.6 3.19.12**
References
Related Issues
- Cross-Site-Scripting attack on `<RichTextField>` - CVE-2023-25572
- tarteaucitron.js vulnerable to Cross-site Scripting - CVE-2023-3620
- editor.md vulnerable to Cross-site Scripting - CVE-2023-29641
- external-svg-loader Cross-site Scripting vulnerability - CVE-2023-40013
You might also like:
- Tags:
- npm
- react-admin
Anything's wrong? Let us know Last updated on February 22, 2023


