更新: 2933 个文件 - 2026-03-18 11:36:11

这个提交包含在:
hao
2026-03-18 11:36:12 -07:00
父节点 1e9522e1a8
当前提交 13d341e71f
修改 2933 个文件,包含 115508 行新增1353 行删除

查看文件

@@ -0,0 +1,72 @@
{
"canonical_id": "vue--CVE-2024-9506",
"system_id": "vue",
"display_name": "Vue",
"category": "frameworks",
"advisory_mode": "core",
"title": "ReDoS vulnerability in vue package that is exploitable through inefficient regex evaluation in the parseHTML function",
"summary": "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.",
"published_at": "2024-10-15T18:30:50Z",
"updated_at": "2024-10-24T19:12:14.925352Z",
"severity": "low",
"cvss_score": 3.1,
"exploit_status": "unknown",
"source_confidence": "official",
"official_source_url": "https://nvd.nist.gov/vuln/detail/CVE-2024-9506",
"secondary_source_urls": [
"https://github.com/vuejs/core",
"https://www.herodevs.com/vulnerability-directory/cve-2024-9506"
],
"aliases": [
"CVE-2024-9506",
"GHSA-5j4c-8p2g-v4jx"
],
"cve_ids": [
"CVE-2024-9506"
],
"ghsa_ids": [
"GHSA-5j4c-8p2g-v4jx"
],
"osv_ids": [
"GHSA-5j4c-8p2g-v4jx"
],
"affected_versions": [
"introduced=2.0.0-alpha.1, fixed<3.0.0-alpha.0"
],
"fixed_versions": [
"3.0.0-alpha.0"
],
"package_name": "vue",
"render_markdown": true,
"case_path": "07-framework-security/frameworks/vue/cases/vue-cve-2024-9506.md",
"secure_code_topics": [
"xss-output-encoding",
"template-injection-guard",
"csp-trusted-types",
"dependency-upgrade-policy"
],
"status": "generated",
"triage_reasons": [],
"verification_status": "triage-manual",
"verification_mode": "synthetic",
"last_verified_at": null,
"last_run_id": null,
"evidence_bundle": null,
"browser_evidence": {
"required": false,
"present": false,
"refs": []
},
"repro_profile_id": "xss-generic",
"artifact_mode": "official-source",
"blocked_reason": null,
"metadata": {
"source_names": [
"OSV Vue"
],
"source_kinds": [
"osv-batch"
],
"candidate_count": 1
}
}