VDB
Sign up
MEDIUM6.1

GHSA-63q7-h895-m982

Cross-site Scripting in dompurify

Quick fix

GHSA-63q7-h895-m982 — dompurify: upgrade to the fixed version with the command below.

npm install dompurify@2.0.17

Details

Cure53 DOMPurify before 2.0.17 allows mutation XSS. This occurs because a serialize-parse roundtrip does not necessarily return the original DOM tree, and a namespace can change from HTML to MathML, as demonstrated by nesting of FORM elements.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/dompurify
Introduced in: 0Fixed in: 2.0.17
Fixnpm install dompurify@2.0.17

References