{"id":"CVE-2024-9506","aliases":["CVE-2024-9506","GHSA-5j4c-8p2g-v4jx"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS)","summary":"Improper regular expression in Vue's parseHTML function leads to a potential regular expression denial of service vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper regular expression in Vue's parseHTML function leads to a potential regular expression denial of service vulnerability.","source":"cvelist"},{"lang":"en","text":"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.\n\nTo 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>`.\n\n```javascript\nnew Vue({\n  el: '#app',\n  template: '\n    <div>\n      Hello, world!\n      <script>${'<'.repeat(1000000)}</textarea>\n    </div>'\n});\n```\nNext, set up a basic HTML page (e.g., index.html) to load this JavaScript and mount the Vue instance:\n\n```html\n<!DOCTYPE html>\n<html>\n<head>\n  <title>My first Vue app</title>\n</head>\n<body>\n  <div id=\\\"app\\\">Loading...</div>\n</body>\n</html>\n```\n\nWhen 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una expresión regular incorrecta en la función parseHTML de Vue conduce a una posible vulnerabilidad de denegación de servicio de expresión regular.","source":"nvd"}],"published":"2024-10-15T15:40:04.627Z","modified":"2026-09-10T03:50:19.194Z","severity":{"scorer":"HeroDevs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},"severities":[{"scorer":"HeroDevs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P","rating":"LOW"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"type":"semver","introduced":"2.0.0","lastAffected":"2.7.16","status":"affected"}],"vendor":"vue","product":"vue","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0-alpha.1","status":"affected","fixed":"3.0.0-alpha.0"}],"ecosystem":"npm","package":"vue","purl":"pkg:npm/vue","source":"ghsa"}],"references":[{"url":"https://www.herodevs.com/vulnerability-directory/cve-2024-9506","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9506","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vuejs/core","tags":["package"],"sources":["ghsa"]}],"credits":["K"],"assigner":"HeroDevs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-15T16:10:46.075Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-9506","url":"https://www.cve.org/CVERecord?id=CVE-2024-9506","licence":"CVE Terms of Use","modified":"2024-10-15T16:10:56.576Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5j4c-8p2g-v4jx","url":"https://github.com/advisories/GHSA-5j4c-8p2g-v4jx","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:19.194Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-9506","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9506","licence":"Public domain","modified":"2026-06-17T08:24:42.310Z"}],"updatedAt":"2026-11-25T22:58:46.763Z","epss":{"score":0.00571,"percentile":0.48633,"date":"2026-12-02T12:00:21.000Z"}}