@bbob/preset-html5 is vulnerable to Cross-Site Scripting (XSS)
73
High Risk
@bbob/preset-html5 defines the default HTML5 tag set, and its [url] tag emits an anchor whose href comes from user input and is sanitized by escapeAttrValue. The URL-scheme guard only matches a contiguous scheme token, so control characters inside the scheme keyword bypass it while browsers still resolve the URL. A [url] value containing java script: therefore renders an href that runs script when the link is followed. The fix strips ASCII tab, newline, and carriage-return characters before applying the scheme guard.
You are affected if you are using a version that falls within the vulnerable range and you render user-controlled BBCode to HTML.
@bbob/preset-html5 is vulnerable to Cross-Site Scripting (XSS) in versions 2.5.8 - 4.3.1.
Upgrade the @bbob/preset-html5 library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant