Vulnerability library
Security checkDecember 31, 2025

vue-template-compiler vulnerable to client-side Cross-Site Scripting (XSS)

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

No fix is available yet. Followings are affected versions:

  • >= 2.0.0, < 3.0.0

References

Could your website be exposed too?

SmartScanner can check your website for vue-template-compiler vulnerable to client-side Cross-Site Scripting (XSS) and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated December 31, 2025