Security mailing lists by PureSourceCode

CVE-2023-25572

MEDIUM 5.4CVSS 3.1

Cross-Site-Scripting attack on `<RichTextField>`

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.

Published
13 Feb 2023
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-5jcr-82fh-339v
Sources
NVDJSONOSV GHSA-5jcr-82fh-339vJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD marmelab ra-ui-materialui
cpe:2.3:a:marmelab:ra-ui-materialui:*:*:*:*:*:node.js:*:*
< 3.9.12 3.9.12
NVD marmelab ra-ui-materialui
cpe:2.3:a:marmelab:ra-ui-materialui:*:*:*:*:*:node.js:*:*
>= 4.0.0, < 4.7.6 4.7.6
NVD marmelab react-admin
cpe:2.3:a:marmelab:react-admin:*:*:*:*:*:node.js:*:*
< 3.9.12 3.9.12
NVD marmelab react-admin
cpe:2.3:a:marmelab:react-admin:*:*:*:*:*:node.js:*:*
>= 4.0.0, < 4.7.6 4.7.6
OSV npm react-admin < 3.19.12 3.19.12
OSV npm react-admin >= 4.0.0, < 4.7.6 4.7.6
OSV npm ra-ui-materialui >= 4.0.0, < 4.7.6 4.7.6
OSV npm ra-ui-materialui < 3.19.12 3.19.12

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 13 Feb 2023)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 14 Feb 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.