Intel

AIKIDO-2026-624585

@vue/shared is vulnerable to Cross-Site Scripting (XSS)

GHSA-9rff-vwfp-83hvPublished Jul 22, 2026
July 22, 2026

59

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

The escapeHtmlComment helper in @vue/shared sanitizes comment content during server-side rendering by stripping HTML comment delimiter sequences. It performs a single regex pass, so crafted input containing overlapping or adjacent comment markers can reconstruct a --> sequence that survives sanitization. When an application renders attacker-influenced data inside a comment vnode, this prematurely closes the server-rendered comment and lets injected markup be parsed as HTML, enabling cross-site scripting. The fix repeatedly strips comment delimiter fragments until the output is stable so no closing delimiter can be produced.

How do I fix this?

Upgrade the @vue/shared 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 your application renders untrusted content inside HTML comments during server-side rendering.

Versions

3.0.0 - 3.5.39

Fixed in 3.5.40

Background info

@vue/shared is vulnerable to Cross-Site Scripting (XSS) in versions 3.0.0 - 3.5.39.

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