Update dependency sanitize-html to v2 [SECURITY]#336
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Update dependency sanitize-html to v2 [SECURITY]#336renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
b583476 to
530e112
Compare
530e112 to
d070152
Compare
d070152 to
8b20a00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
1.23.0→2.3.2GitHub Vulnerability Alerts
CVE-2021-26540
Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when the "allowIframeRelativeUrls" is set to true, which allows attackers to bypass hostname whitelist for iframe element, related using an src value that starts with "/\example.com".
CVE-2021-26539
Apostrophe Technologies sanitize-html before 2.3.1 does not properly handle internationalized domain name (IDN) which could allow an attacker to bypass hostname whitelist validation set by the "allowedIframeHostnames" option.
Release Notes
apostrophecms/sanitize-html (sanitize-html)
v2.3.2Compare Source
yarn addsyntax. Thanks to Tagir Khadshiev for the contribution.v2.3.1Compare Source
v2.3.0Compare Source
htmlparser2to new major version^6.0.0. Thanks to Bogdan Chadkin for the contribution.v2.2.0Compare Source
telto the defaultallowedSchemes. Thanks to Arne Herbots for this contribution.v2.1.2Compare Source
v2.1.1Compare Source
allowedClasseswith an'*'wildcard selector. Thanks to Clemens Damke for this contribution.v2.1.0Compare Source
supadded to the default allowed tags list. Thanks to Julian Lam for the contribution.allowedTagsREADME documentation. Thanks to Marco Arduini for the contribution.v2.0.0Compare Source
nestingLimitoption added.is-plain-objectpackage with named export. Thanks to Bogdan Chadkin for the contribution.postcsspackage and drop Node 11 and Node 13 support (enforced by postcss).Backwards compatibility breaks:
allowedTagsarray was updated significantly. This mostly added HTML tags to be more comprehensive by default. You should review your projects and consider theallowedTagsdefaults if you are not already overriding them.v1.27.5Compare Source
v1.27.4Compare Source
Array.prototype.includes, replacing it withArray.prototype.indexOf.v1.27.3Compare Source
transformTagswith outtextFilter. Thanks to Andrzej Porebski for the help with a failing test.v1.27.2Compare Source
srcsetwithparse-srcset. Thanks to Massimiliano Mirra for the contribution.v1.27.1Compare Source
xtendpackage with nativeObject.assign.v1.27.0Compare Source
allowedIframeDomainsoption. This works similar toallowedIframeHostnames, where you would set it to an array of web domains. It would then permit any hostname on those domains to be used in iframesrcattributes. Thanks to Stanislav Kravchenko for the contribution.v1.26.0Compare Source
optionelement to the defaultnonTextTagsArrayof tags with contents that aren't meant to be displayed visually as text. This can be overridden with thenonTextTagsoption.v1.25.0Compare Source
enforceHtmlBoundaryoption to process code bounded by thehtmltag, discarding any code outside of those tags.styleandscripttags are allowed, as they are inherently vulnerable to being used in XSS attacks. That warning can be disabled by including the optionallowVulnerableTags: trueso this choice is knowing and explicit.v1.24.0Compare Source
disallowedTagsMode: 'escape'set. Thanks to Thiago Negri for the contribution.abbrto the defaultallowedTagsfor better accessibility support. Thanks to Will Farrell for the contribution.mediaChildrenproperty to theframeobject in custom filters. This allows you to check for links or other parent tags that contain self-contained media to prevent collapse, regardless of whether there is also text inside. Thanks to axdg for the initial implementation and Marco Arduini for a failing test contribution.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.