vue-template-compiler vulnerable to client-side Cross-Site Scripting (XSS)
Moderate severity
GitHub Reviewed
Published
Jul 23, 2024
to the GitHub Advisory Database
•
Updated Dec 31, 2025
Description
Published by the National Vulnerability Database
Jul 23, 2024
Published to the GitHub Advisory Database
Jul 23, 2024
Reviewed
Jul 23, 2024
Last updated
Dec 31, 2025
A vulnerability has been discovered in vue-template-compiler, that allows an attacker to perform XSS via prototype pollution. The attacker could change the prototype chain of some properties such as
Object.prototype.staticClassorObject.prototype.staticStyleto execute arbitrary JavaScript code. Vue 2 has reached End-of-Life. This vulnerability has been patched in Vue 3.References