Vulnerabilities/

DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluation

Severity:
Medium

Description

In src/purify.ts:1117-1123, ADD_TAGS as a function (via EXTRA_ELEMENT_HANDLING.tagCheck) bypasses FORBID_TAGS due to short-circuit evaluation.

Recommendation

Update the dompurify package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
dompurify
Anything's wrong? Let us know Last updated on April 16, 2026