diff --git a/package-lock.json b/package-lock.json
index 017214e9bdc..cedd9566554 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -16,7 +16,7 @@
"classnames": "^2.5.1",
"css.escape": "1.5.1",
"deep-extend": "0.6.0",
- "dompurify": "=3.2.4",
+ "dompurify": "=3.2.6",
"ieee754": "^1.2.1",
"immutable": "^3.x.x",
"js-file-download": "^0.4.12",
@@ -11066,7 +11066,9 @@
}
},
"node_modules/dompurify": {
- "version": "3.2.4",
+ "version": "3.2.6",
+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.6.tgz",
+ "integrity": "sha512-/2GogDQlohXPZe6D6NOgQvXLPSYBqIWMnZ8zzOhn09REE4eyAzb+Hed3jhoM9OkuaJ8P6ZGTTVWQKAi8ieIzfQ==",
"license": "(MPL-2.0 OR Apache-2.0)",
"optionalDependencies": {
"@types/trusted-types": "^2.0.7"
diff --git a/package.json b/package.json
index 10cc452bb93..523f61745d1 100644
--- a/package.json
+++ b/package.json
@@ -80,7 +80,7 @@
"classnames": "^2.5.1",
"css.escape": "1.5.1",
"deep-extend": "0.6.0",
- "dompurify": "=3.2.4",
+ "dompurify": "=3.2.6",
"ieee754": "^1.2.1",
"immutable": "^3.x.x",
"js-file-download": "^0.4.12",
diff --git a/test/unit/components/markdown.jsx b/test/unit/components/markdown.jsx
index c4e72c9628d..4a5ad4123ae 100644
--- a/test/unit/components/markdown.jsx
+++ b/test/unit/components/markdown.jsx
@@ -9,7 +9,7 @@ describe("Markdown component", function () {
const getConfigs = () => ({ useUnsafeMarkdown: true })
const str = `ONE`
const el = render()
- expect(el.prop("outerHTML")).toEqual(`
`)
+ expect(el.prop("outerHTML")).toEqual(``)
})
it("strips class, style and data-* attribs from elements", function () {
@@ -28,13 +28,13 @@ describe("Markdown component", function () {
it("allows image elements", function () {
const str = ``
const el = render()
- expect(el.prop("outerHTML")).toEqual(`
\n
`)
+ expect(el.prop("outerHTML")).toEqual(`
\n
`)
})
it("allows image elements with https scheme", function () {
const str = ``
const el = render()
- expect(el.prop("outerHTML")).toEqual(`
\n
`)
+ expect(el.prop("outerHTML")).toEqual(`
\n
`)
})
it("allows image elements with data scheme", function () {
@@ -58,7 +58,7 @@ describe("Markdown component", function () {
it("allows links", function () {
const str = `[Link](https://example.com/)`
const el = render()
- expect(el.prop("outerHTML")).toEqual(``)
+ expect(el.prop("outerHTML")).toEqual(``)
})
})
@@ -67,7 +67,7 @@ describe("Markdown component", function () {
const getConfigs = () => ({ useUnsafeMarkdown: true })
const str = `ONE`
const el = render()
- expect(el.prop("outerHTML")).toEqual(``)
+ expect(el.prop("outerHTML")).toEqual(``)
})
it("strips class, style and data-* attribs from elements", function () {
@@ -80,13 +80,13 @@ describe("Markdown component", function () {
it("allows image elements", function () {
const str = ``
const el = render()
- expect(el.prop("outerHTML")).toEqual(``)
+ expect(el.prop("outerHTML")).toEqual(``)
})
it("allows image elements with https scheme", function () {
const str = ``
const el = render()
- expect(el.prop("outerHTML")).toEqual(``)
+ expect(el.prop("outerHTML")).toEqual(``)
})
it("allows image elements with data scheme", function () {
diff --git a/test/unit/xss/markdown-script-sanitization.jsx b/test/unit/xss/markdown-script-sanitization.jsx
index 34ff2e24340..c41ff672224 100644
--- a/test/unit/xss/markdown-script-sanitization.jsx
+++ b/test/unit/xss/markdown-script-sanitization.jsx
@@ -20,7 +20,7 @@ describe("Markdown Script Sanitization", function() {
it("sanitizes