Cross-site scripting in Vuejs - #VU146304

 

Cross-site scripting in Vuejs - #VU146304

Published: August 31, 2026


Vulnerability identifier: #VU146304
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to inject arbitrary web script in server-rendered HTML.

The vulnerability exists due to cross-site scripting in ssrRenderAttrs() and isSSRSafeAttrName() in @vue/server-renderer when rendering dynamic attribute names from an attacker-controlled object via v-bind. A remote attacker can supply a crafted attribute key containing a carriage return character to inject arbitrary web script in server-rendered HTML.

The issue is specific to server-side rendering and can be triggered without user interaction when the injected attributes include self-triggering event handler combinations such as autofocus with onfocus.


Affected software

Vuejs

Remediation

Install security update from vendor's website.

Vuejs - update to 3.5.42

External References

Related Security Bulletins