NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2024-6783: vue-template-compiler vulnerable to client-side Cross-Site Scripting (XSS)

mediumCVSS 3.1 4.2GHSA-g3ch-rx76-35fx

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.staticClass or Object.prototype.staticStyle to execute arbitrary JavaScript code. Vue 2 has reached End-of-Life. This vulnerability has been patched in Vue 3.

Published Jul 23, 2024 · Updated Dec 31, 2025

Affected packages

vue-template-compiler

Ecosystem
npm
Affected
>= 2.0.0, < 3.0.0
Fixed in
No patched version yet
Check
npm ls vue-template-compiler

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.staticClass or Object.prototype.staticStyle to execute arbitrary JavaScript code. Vue 2 has reached End-of-Life. This vulnerability has been patched in Vue 3.

Credited to sdesalas, knutwannheden.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology