---
title: "GHSA-g3ch-rx76-35fx: vue-template-compiler vulnerable to client-side Cross-Site Scripting (XSS)"
description: "Moderate severity. vue-template-compiler vulnerable to client-side Cross-Site Scripting (XSS). Affects vue-template-compiler."
url: https://inlinr.com/advisories/GHSA-g3ch-rx76-35fx
lang: en
---

[Packages](https://inlinr.com/packages) / [vue-template-compiler](https://inlinr.com/packages/vue-template-compiler) / [Security](https://inlinr.com/packages/vue-template-compiler/security)

Moderate Vulnerability GHSA-g3ch-rx76-35fx CVE-2024-6783 Published 23 Jul 2024

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

Your version 

Affected releases · [vue-template-compiler](https://inlinr.com/packages/vue-template-compiler)

- 2.x 2.0.0 – 2.7.16 No fix on this line yet

No release fixes it yet, not even the latest, 2.7.16.

Every release on a timeline

1. Not affected

0.1.0  
1 release
2. Affected

2.0.0 – 2.7.16  
92 releases, latest

93 stable releases of vue-template-compiler, oldest to newest.

## What happens

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.

## How it is exploited

Exploitable over the network, with a low-privilege account and no action from a user.

- **Confidentiality**: low
- **Integrity**: low
- **Availability**: none

CVSS:3.1/​AV:N/​AC:H/​PR:L/​UI:N/​S:U/​C:L/​I:L/​A:N

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-6783 "https://nvd.nist.gov/vuln/detail/CVE-2024-6783")  
nvd.nist.gov/vuln/detail/CVE-2024-6783
- [Package](https://github.com/vuejs/vue "https://github.com/vuejs/vue")  
github.com/vuejs/vue
- [Reference](https://www.herodevs.com/vulnerability-directory/cve-2024-6783 "https://www.herodevs.com/vulnerability-directory/cve-2024-6783")  
herodevs.com/vulnerability-directory/cve-2024-6…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
