Vue version 2.6.4 is a minor release following 2.6.3 in the popular JavaScript framework for building user interfaces. Both versions share the same core description: a reactive, component-oriented view layer suitable for modern web development. They are licensed under MIT and maintained by Evan You, residing in the same GitHub repository. A key focus for developers using Vue is often the specific changes and improvements introduced in each version.
Examining the provided data, the devDependencies appear identical between the two versions, suggesting that the development tooling and testing dependencies remained consistent. The noticeable difference lies in the dist section, specifically the unpackedSize. Version 2.6.4 has an unpacked size of 2,941,430 bytes, while 2.6.3 has an unpacked size of 2,927,873 bytes. This indicates that Vue 2.6.4 introduces some internal changes, bug fixes, or enhancements that resulted in a slightly larger distribution. Another difference is in the dates of the releases. While seemingly small these represent a window during which bugs may or may not be present. Developers should consult the official Vue.js changelog or release notes to understand the specific changes included in version 2.6.4 and determine if the update addresses any known issues or offers performance benefits relevant to their projects. These minor version bumps are often important and can contain crucial fixes.
All the vulnerabilities related to the version 2.6.4 of the package
ReDoS vulnerability in vue package that is exploitable through inefficient regex evaluation in the parseHTML function
The ReDoS can be exploited through the parseHTML
function in the html-parser.ts
file. This flaw allows attackers to slow down the application by providing specially crafted input that causes inefficient processing of regular expressions, leading to excessive resource consumption.
To demonstrate this vulnerability, here's an example. In a Vue client-side application, create a new Vue instance with a template string that includes a <script>
tag but closes it incorrectly with something like </textarea>
.
new Vue({
el: '#app',
template: '
<div>
Hello, world!
<script>${'<'.repeat(1000000)}</textarea>
</div>'
});
Next, set up a basic HTML page (e.g., index.html) to load this JavaScript and mount the Vue instance:
<!DOCTYPE html>
<html>
<head>
<title>My first Vue app</title>
</head>
<body>
<div id=\"app\">Loading...</div>
</body>
</html>
When you visit the app in your browser at http://localhost:3000, you'll notice that the time taken to parse and mount the Vue application increases significantly due to the ReDoS vulnerability, demonstrating how the flaw can affect performance.