文件
websafe-kb/08-threat-intel/registry/advisories/react--CVE-2018-6341.json

88 行
3.0 KiB
JSON

{
"canonical_id": "react--CVE-2018-6341",
"system_id": "react",
"display_name": "React",
"category": "frameworks",
"advisory_mode": "core",
"title": "Cross-Site Scripting in react-dom",
"summary": "Affected versions of `react-dom` are vulnerable to Cross-Site Scripting (XSS). The package fails to validate attribute names in HTML tags which may lead to Cross-Site Scripting in specific scenarios. This may allow attackers to execute arbitrary JavaScript in the victim's browser. To be affected by this vulnerability, the application needs to:\n- be a server-side React app\n- be rendered to HTML using `ReactDOMServer`\n- include an attribute name from user input in an HTML tag\n\n\n## Recommendation\n\nIf you are using `react-dom` 16.0.x, upgrade to 16.0.1 or later. \nIf you are using `react-dom` 16.1.x, upgrade to 16.1.2 or later. \nIf you are using `react-dom` 16.2.x, upgrade to 16.2.1 or later. \nIf you are using `react-dom` 16.3.x, upgrade to 16.3.3 or later. \nIf you are using `react-dom` 16.4.x, upgrade to 16.4.2 or later.",
"published_at": "2019-01-04T19:05:35Z",
"updated_at": "2023-11-08T04:00:21.209483Z",
"severity": "low",
"cvss_score": 3.0,
"exploit_status": "unknown",
"source_confidence": "official",
"official_source_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-6341",
"secondary_source_urls": [
"https://github.com/advisories/GHSA-mvjj-gqq2-p4hw",
"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html",
"https://snyk.io/vuln/npm:react-dom:20180802",
"https://twitter.com/reactjs/status/1024745321987887104",
"https://www.npmjs.com/advisories/1421"
],
"aliases": [
"CVE-2018-6341",
"GHSA-mvjj-gqq2-p4hw"
],
"cve_ids": [
"CVE-2018-6341"
],
"ghsa_ids": [
"GHSA-mvjj-gqq2-p4hw"
],
"osv_ids": [
"GHSA-mvjj-gqq2-p4hw"
],
"affected_versions": [
"16.0.0",
"16.2.0",
"introduced=16.0.0, fixed<16.0.1",
"introduced=16.1.0, fixed<16.1.2",
"introduced=16.2.0, fixed<16.2.1",
"introduced=16.3.0, fixed<16.3.3",
"introduced=16.4.0, fixed<16.4.2"
],
"fixed_versions": [
"16.0.1",
"16.1.2",
"16.2.1",
"16.3.3",
"16.4.2"
],
"package_name": "react-dom",
"render_markdown": true,
"case_path": "07-framework-security/frameworks/react/cases/react-cve-2018-6341.md",
"secure_code_topics": [
"xss-output-encoding",
"dom-sink-hardening",
"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,
"historical_status": null,
"latest_status": null,
"browser_evidence": {
"required": false,
"present": false,
"refs": []
},
"repro_profile_id": "xss-generic",
"artifact_mode": "synthetic",
"blocked_reason": null,
"metadata": {
"source_names": [
"OSV React"
],
"source_kinds": [
"osv-batch"
],
"candidate_count": 1
}
}