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>.
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.
ReDoS vulnerability in vue package that is exploitable through inefficient regex evaluation in the parseHTML function
More information
#### Details
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 ` Githubissues.
Githubissues is a development platform for aggregating issues.
This PR contains the following updates:
~2.7.16
->~3.0.0-alpha
GitHub Vulnerability Alerts
CVE-2024-9506
The ReDoS can be exploited through the
parseHTML
function in thehtml-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>
.Next, set up a basic HTML page (e.g., index.html) to load this JavaScript and mount the Vue instance:
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.
ReDoS vulnerability in vue package that is exploitable through inefficient regex evaluation in the parseHTML function
CVE-2024-9506 / GHSA-5j4c-8p2g-v4jx
More information
#### Details 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 ` Githubissues.