文件
websafe-kb/08-threat-intel/registry/advisories/undici--CVE-2022-35948.json

78 行
3.0 KiB
JSON

{
"canonical_id": "undici--CVE-2022-35948",
"system_id": "undici",
"display_name": "Undici",
"category": "frameworks",
"advisory_mode": "core",
"title": "Nodejs \u2018undici\u2019 vulnerable to CRLF Injection via Content-Type",
"summary": "### Impact\n\n`=< undici@5.8.0` users are vulnerable to _CRLF Injection_ on headers when using unsanitized input as request headers, more specifically, inside the `content-type` header.\n\nExample:\n\n```\nimport { request } from 'undici'\n\nconst unsanitizedContentTypeInput = 'application/json\\r\\n\\r\\nGET /foo2 HTTP/1.1'\n\nawait request('http://localhost:3000, {\n method: 'GET',\n headers: {\n 'content-type': unsanitizedContentTypeInput\n },\n})\n```\n\nThe above snippet will perform two requests in a single `request` API call:\n\n1) `http://localhost:3000/`\n2) `http://localhost:3000/foo2`\n\n### Patches\n\nThis issue was patched in Undici v5.8.1\n\n### Workarounds\n\nSanitize input when sending content-type headers using user input.\n\n## For more information\nIf you have any questions or comments about this advisory:\n\n- Open an issue in [undici repository](https://github.com/nodejs/undici/issues)\n- To make a report, follow the [SECURITY](https://github.com/nodejs/node/blob/HEAD/SECURITY.md) document",
"published_at": "2022-08-18T19:02:56Z",
"updated_at": "2023-11-08T04:09:53.836338Z",
"severity": "medium",
"cvss_score": 3.1,
"exploit_status": "unknown",
"source_confidence": "official",
"official_source_url": "https://github.com/nodejs/undici/security/advisories/GHSA-f772-66g8-q5h3",
"secondary_source_urls": [
"https://github.com/nodejs/undici/commit/66165d604fd0aee70a93ed5c44ad4cc2df395f80",
"https://nvd.nist.gov/vuln/detail/CVE-2022-35948",
"https://github.com/nodejs/undici",
"https://github.com/nodejs/undici/releases/tag/v5.8.2"
],
"aliases": [
"CVE-2022-35948",
"GHSA-f772-66g8-q5h3"
],
"cve_ids": [
"CVE-2022-35948"
],
"ghsa_ids": [
"GHSA-f772-66g8-q5h3"
],
"osv_ids": [
"GHSA-f772-66g8-q5h3"
],
"affected_versions": [
"introduced=0, fixed<5.8.2"
],
"fixed_versions": [
"5.8.2"
],
"package_name": "undici",
"render_markdown": true,
"case_path": "07-framework-security/frameworks/undici/cases/undici-cve-2022-35948.md",
"secure_code_topics": [
"ssrf-url-validation",
"proxy-trust-boundary",
"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,
"historical_status": null,
"latest_status": null,
"browser_evidence": {
"required": false,
"present": false,
"refs": []
},
"repro_profile_id": "undici-ssrf",
"artifact_mode": "synthetic",
"blocked_reason": null,
"metadata": {
"source_names": [
"OSV Undici",
"NVD Undici"
],
"source_kinds": [
"osv-batch",
"nvd-search"
],
"candidate_count": 2
}
}