GitHub Advisoryadvisory · npm

GHSA-g3ch-rx76-35fx vue-template-compiler vulnerable to client-side Cross-Site Scripting (XSS)

MEDIUM Published 2024-07-23 Modified 2025-12-31 Official page ↗
Aliases
CVE-2024-6783
Ecosystem
npm
Packages
vue-template-compiler
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2024-07-23

Affected packages

• npm vue-template-compiler: < 3.0.0 (no fix yet)

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. This vulnerability has been patched in Vue 3.

Related

Alias · CVE (1)

  • CVE-2024-6783 A vulnerability has been discovered in Vue, that allows an attacker to perform XSS via prototype pollution. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References