Vue Template Compiler versions 2.6.8 and 2.6.7 are template compilers tailored for Vue 2.0, crucial for transforming Vue templates into render functions that the browser can understand. Both versions share a common foundation, utilizing dependencies like he for HTML entity encoding/decoding and de-indent for removing excessive indentation from code. Notably, both maintain the same developer dependencies, pointing to a local Vue development environment indicated by "vue": "file:../..", suggesting a focus on continuous internal testing and integration within the Vue ecosystem.
The key difference arises in their release timeline and unpacked size of the packages. Version 2.6.8 was released on March 1, 2019, while version 2.6.7 was released on February 21, 2019. The newer version has a slightly larger unpacked size of 414223 bytes compared to 2.6.7's 414134 bytes. This minor size discrepancy likely reflects bug fixes, performance improvements, or subtle adjustments to the compilation process.
For developers utilizing Vue, these compilers are essential for building Vue applications. Choosing between 2.6.7 and 2.6.8 depends on the specific needs; updating to the newer version, 2.6.8, is generally recommended ensuring access to the latest fixes and optimizations, contributing for a more stable and performant development experience. Both versions are provided under the MIT license and acknowledge Evan You as the author.
All the vulnerabilities related to the version 2.6.8 of the package
vue-template-compiler vulnerable to client-side Cross-Site Scripting (XSS)
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.