Intel

AIKIDO-2026-722686

@bbob/preset-html5 is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-68550Published Aug 5, 2026
August 5, 2026

73

CVE Score

High

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

@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.

How do I fix this?

Upgrade the @bbob/preset-html5 library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you render user-controlled BBCode to HTML.

Versions

2.5.8 - 4.3.1

Fixed in 4.4.0

Background info

@bbob/preset-html5 is vulnerable to Cross-Site Scripting (XSS) in versions 2.5.8 - 4.3.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea