Intel

AIKIDO-2026-135497

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

Cross-Site Scripting (XSS)GHSA-9rff-vwfp-83hv Published 5 days ago

59

Medium Risk

This Affects:

JS@vue/server-renderer
3.0.0 - 3.5.39
Fixed in 3.5.40
Are you affected? Scan for Free

TL;DR

Vue's server-side renderer escapes the contents of HTML comment vnodes with a helper that strips comment delimiter sequences in a single pass. Crafted input containing overlapping comment markers can leave a residual --> sequence after stripping, letting the rendered content close the surrounding SSR comment early. When the comment content is influenced by untrusted input, this breakout allows injection of arbitrary HTML or script into the server-rendered page. The fix repeatedly strips comment token fragments until the output is stable so no closing delimiter can be reconstructed.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application server-renders comment content that can be influenced by untrusted input.

Background info

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

How to fix this

Upgrade the @vue/server-renderer library to the patch version.