vue-patched
vue-patched
A security-patched version of Vue 2.7.16 to fix the prototype pollution XSS vulnerability (CVE-2024-6783) and the ReDoS vulnerability (CVE-2024-9506).
Vue 2 is end-of-life and no longer receives official security updates. This package provides patched runtime and full (compiler-included) builds.
Based on vuejs/vue@v2.7.16. Prefer migrating to Vue 3 when you can.
Installation
Installs under the original vue name so import Vue from 'vue' / require('vue') and peer dependencies keep working.
npm
npm install vue@npm:vue-patched@2.7.16-patch.3
pnpm
pnpm add vue@npm:vue-patched@2.7.16-patch.3
Yarn
yarn add vue@npm:vue-patched@2.7.16-patch.3
Related
If you compile .vue SFCs or templates at build time (vue-loader, etc.), also replace vue-template-compiler with vue-template-compiler-patched.
CDN / full build
<script src="https://unpkg.com/vue-patched@2.7.16-patch.3/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-patched@2.7.16-patch.3/dist/vue.js"></script>
License
Copyright (c) 2013-present, Yuxi (Evan) You
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 2.7.16-patch.3 | MIT | |
| 2.7.16-patch.2 | MIT | |
| 2.7.16-patch.1 | MIT |