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 was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@udecode/[email protected]
Patch Changes
d30471cb19577e53c20944ab66eab2a7ef3b3ad2
by @12joan – Mitigate XSS inelement.attributes
by requiring all attribute names to be allowlisted in thenode.dangerouslyAllowAttributes
plugin configuration option.Migration:
For each plugin that needs to support passing DOM attributes using
element.attributes
, add the list of allowed attributes to thenode.dangerouslyAllowAttributes
option of the plugin.To modify existing plugins, use the
extend
method as follows:WARNING: Improper use of
dangerouslyAllowAttributes
WILL make your application vulnerable to cross-site scripting (XSS) or information exposure attacks. Ensure you carefully research the security implications of any attribute before adding it. For example, thesrc
andhref
attributes will allow attackers to execute arbitrary code, and thestyle
andbackground
attributes will allow attackers to leak users' IP addresses.@udecode/[email protected]
Patch Changes
f26ed56053b14e697fea2e6a7e33a73ce28593e4
by @12joan – Add thetarget
attribute todangerouslyAllowAttributes
for LinkPlugin@udecode/[email protected]
Patch Changes
d30471cb19577e53c20944ab66eab2a7ef3b3ad2
by @12joan – Add the following attributes todangerouslyAllowAttributes
:alt
,width
,height
width
,height
@udecode/[email protected]
Patch Changes
f26ed56053b14e697fea2e6a7e33a73ce28593e4
by @12joan – Add thecolspan
androwspan
attributes todangerouslyAllowAttributes
for TableCellPlugin and TableCellHeaderPlugin@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]