Update dependency sanitize-html to v2
Created by: renovate[bot]
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
sanitize-html | ^1.26.0 -> ^2.3.2 |
Release Notes
apostrophecms/sanitize-html
v2.3.2
- Additional fixes for iframe validation exploits. Prevent exploits based on browsers' tolerance of the use of "\" rather than "/" and the presence of whitespace at this point in the URL. Thanks to Ron Masas of Checkmarx for pointing out the issue and writing unit tests.
- Updates README
yarn add
syntax. Thanks to Tagir Khadshiev for the contribution.
v2.3.1
- Uses the standard WHATWG URL parser to stop IDNA (Internationalized Domain Name) attacks on the iframe hostname validator. Thanks to Ron Masas of Checkmarx for pointing out the issue and suggesting the use of the WHATWG parser.
v2.3.0
- Upgrades
htmlparser2
to new major version^6.0.0
. Thanks to Bogdan Chadkin for the contribution.
v2.2.0
- Adds a note to the README about Typescript support (or the lack-thereof).
- Adds
tel
to the defaultallowedSchemes
. Thanks to Arne Herbots for this contribution.
v2.1.2
- Fixes typos and inconsistencies in the README. Thanks to Eric Lefevre-Ardant for this contribution.
v2.1.1
- Fixes a bug when using
allowedClasses
with an'*'
wildcard selector. Thanks to Clemens Damke for this contribution. - Updates mocha to 7.x to resolve security warnings.
v2.1.0
-
sup
added to the default allowed tags list. Thanks to Julian Lam for the contribution. - Updates default
allowedTags
README documentation. Thanks to Marco Arduini for the contribution.
v2.0.0
-
nestingLimit
option added. - Updates ESLint config package and fixes warnings.
- Upgrade
is-plain-object
package with named export. Thanks to Bogdan Chadkin for the contribution. - Upgrade
postcss
package and drop Node 11 and Node 13 support (enforced by postcss).
Backwards compatibility breaks:
- There is no build. You should no longer directly link to a sanitize-html file directly in the browser as it is using modern Javascript that is not fully supported by all major browsers (depending on your definition). You should now include sanitize-html in your project build for this purpose if you have one.
- On the server side, Node.js 10 or higher is required.
- The default
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.
v1.27.5
- Updates README to include ES modules syntax.
v1.27.4
- Fixes an IE11 regression from using
Array.prototype.includes
, replacing it withArray.prototype.indexOf
.
v1.27.3
- Fixes a bug when using
transformTags
with outtextFilter
. Thanks to Andrzej Porebski for the help with a failing test.
v1.27.2
- Fixes CHANGELOG links. Thanks to Alex Mayer for the contribution.
- Replaces
srcset
withparse-srcset
. Thanks to Massimiliano Mirra for the contribution.
v1.27.1
- Removes the unused chalk dependency.
- Adds configuration for a Github stale bot.
- Replace
xtend
package with nativeObject.assign
.
v1.27.0
- Adds the
allowedIframeDomains
option. 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 iframesrc
attributes. Thanks to Stanislav Kravchenko for the contribution.
Renovate configuration
-
If you want to rebase/retry this PR, check this box
This PR has been generated by WhiteSource Renovate. View repository job log here.