Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vue-template-compiler
  4. ›
  5. CVE-2024-6783

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

July 23, 2024

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.

References

  • github.com/advisories/GHSA-g3ch-rx76-35fx
  • github.com/vuejs/vue
  • nvd.nist.gov/vuln/detail/CVE-2024-6783
  • www.herodevs.com/vulnerability-directory/cve-2024-6783---vue-client-side-xss

Code Behaviors & Features

Detect and mitigate CVE-2024-6783 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 3.0.0

Fixed versions

  • 3.0.0

Solution

Upgrade to version 3.0.0 or above.

Impact 4.8 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/vue-template-compiler/CVE-2024-6783.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:28 +0000.