chore(deps): update dependency react-admin to v4.7.6 [security] #741
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.7.4→4.7.6GitHub Vulnerability Alerts
CVE-2023-25572
Impact
All React applications built with react-admin and using the
<RichTextField>are affected.<RichTextField>outputs the field value usingdangerouslySetInnerHTMLwithout client-side sanitization. If the data isn't sanitized server-side, this opens a possible Cross-Site-Scripting (XSS) attack.Proof of concept:
Patches
Versions 3.19.12 and 4.7.6 now use
DOMPurifyto escape the HTML before outputting it with React anddangerouslySetInnerHTMLWorkarounds
You don't need to upgrade if you already sanitize HTML data server-side.
Otherwise, you'll have to replace the
<RichTextField>by a custom field doing sanitization by hand:References
https://github.com/marmelab/react-admin/pull/8644, https://github.com/marmelab/react-admin/pull/8645
Release Notes
marmelab/react-admin (react-admin)
v4.7.6Compare Source
This release contains a security fix. You must upgrade to this version if you use
<RichTextField>with rich text data that isn't sanitized server-side.<RichTextField>(#8644) (fzaninotto)<FilterForm>cannot clear filter with complex object value (#8637) (slax57)<StackedFilters>chapter (#8631) (fzaninotto)v4.7.5Compare Source
<FileInput>label color (#8625) (fzaninotto)<CreateButton>and<EditButton>style with a theme (#8624) (IAmVisco)ra-input-rich-textdependencies on tiptap (#8622) (slax57)useListwithuseGetListexample (#8634) (slax57)Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.