VDB
Sign up
MEDIUM4.5

GHSA-vhxf-7vqr-mrjg

DOMPurify allows Cross-site Scripting (XSS)

Quick fix

GHSA-vhxf-7vqr-mrjg — dompurify: upgrade to the fixed version with the command below.

npm install dompurify@3.2.4

Details

DOMPurify before 3.2.4 has an incorrect template literal regular expression when SAFE_FOR_TEMPLATES is set to true, sometimes leading to mutation cross-site scripting (mXSS).

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/dompurify"]}'