fix(deps): update dependency sanitize-html to v2 [security] #523
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.27.5
->^2.0.0
GitHub 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.2
Compare Source
yarn add
syntax. Thanks to Tagir Khadshiev for the contribution.v2.3.1
Compare Source
v2.3.0
Compare Source
htmlparser2
to new major version^6.0.0
. Thanks to Bogdan Chadkin for the contribution.v2.2.0
Compare Source
tel
to the defaultallowedSchemes
. Thanks to Arne Herbots for this contribution.v2.1.2
Compare Source
v2.1.1
Compare Source
allowedClasses
with an'*'
wildcard selector. Thanks to Clemens Damke for this contribution.v2.1.0
Compare Source
sup
added to the default allowed tags list. Thanks to Julian Lam for the contribution.allowedTags
README documentation. Thanks to Marco Arduini for the contribution.v2.0.0
Compare Source
nestingLimit
option added.is-plain-object
package with named export. Thanks to Bogdan Chadkin for the contribution.postcss
package and drop Node 11 and Node 13 support (enforced by postcss).Backwards compatibility breaks:
allowedTags
array was updated significantly. This mostly added HTML tags to be more comprehensive by default. You should review your projects and consider theallowedTags
defaults if you are not already overriding them.Configuration
📅 Schedule: Branch creation - "" in timezone GMT, 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.