Vulnerabilities/

sanitize-html has incomplete URI scheme validation in that allows javascript: URIs through action, formaction, data, pos

Severity:
Medium

Description

sanitize-html uses allowedSchemesAppliedToAttributes (default: ['href', 'src', 'cite']) to gate the naughtyHref() function that blocks dangerous URI schemes like javascript: and vbscript:.

Recommendation

Update the sanitize-html package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
sanitize-html
Anything's wrong? Let us know Last updated on July 31, 2026