DEV: Update xss.js package (#16398)

This commit is contained in:
Jarek Radosz 2022-04-06 22:49:13 +02:00 committed by GitHub
parent 06d4445ab0
commit 77fed8dfc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 4 deletions

View File

@ -76,7 +76,7 @@ export function sanitize(text, allowLister) {
} }
let result = xss(text, { let result = xss(text, {
whiteList: allowList.tagList, allowList: allowList.tagList,
stripIgnoreTag: true, stripIgnoreTag: true,
stripIgnoreTagBody: ["script", "table"], stripIgnoreTagBody: ["script", "table"],

View File

@ -35,7 +35,7 @@ function findUploadsInHtml(uploads, blockToken) {
let foundImage = false; let foundImage = false;
const newContent = xss(blockToken.content, { const newContent = xss(blockToken.content, {
whiteList: fakeAllowList, allowList: fakeAllowList,
allowCommentTag: true, allowCommentTag: true,
onTag(tag, html, options) { onTag(tag, html, options) {
// We're not using this for sanitizing, so allow all tags through // We're not using this for sanitizing, so allow all tags through

View File

@ -18,7 +18,7 @@
"ember-auto-import": "^2.2.4", "ember-auto-import": "^2.2.4",
"ember-cli-babel": "^7.13.0", "ember-cli-babel": "^7.13.0",
"ember-cli-htmlbars": "^4.2.0", "ember-cli-htmlbars": "^4.2.0",
"xss": "^1.0.8", "xss": "^1.0.11",
"webpack": "^5.67.0" "webpack": "^5.67.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -13864,6 +13864,14 @@ xmlhttprequest-ssl@~1.5.4:
resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz#c2876b06168aadc40e57d97e81191ac8f4398b3e" resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz#c2876b06168aadc40e57d97e81191ac8f4398b3e"
integrity sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4= integrity sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4=
xss@^1.0.11:
version "1.0.11"
resolved "https://registry.yarnpkg.com/xss/-/xss-1.0.11.tgz#211cb82e95b5071d4c75d597283c021157ebe46a"
integrity sha512-EimjrjThZeK2MO7WKR9mN5ZC1CSqivSl55wvUK5EtU6acf0rzEE1pN+9ZDrFXJ82BRp3JL38pPE6S4o/rpp1zQ==
dependencies:
commander "^2.20.3"
cssfilter "0.0.10"
xss@^1.0.8: xss@^1.0.8:
version "1.0.8" version "1.0.8"
resolved "https://registry.yarnpkg.com/xss/-/xss-1.0.8.tgz#32feb87feb74b3dcd3d404b7a68ababf10700535" resolved "https://registry.yarnpkg.com/xss/-/xss-1.0.8.tgz#32feb87feb74b3dcd3d404b7a68ababf10700535"

File diff suppressed because one or more lines are too long