{"api_version":"1","generated_at":"2026-07-23T22:21:53+00:00","cve":"CVE-2018-6342","urls":{"html":"https://cve.report/CVE-2018-6342","api":"https://cve.report/api/cve/CVE-2018-6342.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-6342","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-6342"},"summary":{"title":"CVE-2018-6342","description":"react-dev-utils on Windows allows developers to run a local webserver for accepting various commands, including a command to launch an editor. The input to that command was not properly sanitized, allowing an attacker who can make a network request to the server (either via CSRF or by direct request) to execute arbitrary commands on the targeted system. This issue affects multiple branches: 1.x.x prior to 1.0.4, 2.x.x prior to 2.0.2, 3.x.x prior to 3.1.2, 4.x.x prior to 4.2.2, and 5.x.x prior to 5.0.2.","state":"PUBLIC","assigner":"cve-assign@fb.com","published_at":"2018-12-31 22:29:00","updated_at":"2021-03-25 16:44:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"https://github.com/facebook/create-react-app/releases/tag/v1.1.5","name":"https://github.com/facebook/create-react-app/releases/tag/v1.1.5","refsource":"MISC","tags":["Release Notes","Third Party Advisory"],"title":"Release v1.1.5 · facebook/create-react-app · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/facebook/create-react-app/pull/4866","name":"https://github.com/facebook/create-react-app/pull/4866","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Use file name whitelist to prevent RCE by acdlite · Pull Request #4866 · facebook/create-react-app · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-6342","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-6342","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"6342","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"create-react-app_project","cpe5":"react-dev-utils","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"6342","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"create-react-app_project","cpe5":"react-dev-utils","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"6342","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"facebook","cpe5":"react-dev-utils","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"6342","vulnerable":"-1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"microsoft","cpe5":"windows","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"6342","vulnerable":"0","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"microsoft","cpe5":"windows","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2018-6342","qid":"983136","title":"Nodejs (npm) Security Update for react-dev-utils (GHSA-29gp-92wp-94q8)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve-assign@fb.com","DATE_ASSIGNED":"2018-08-24","ID":"CVE-2018-6342","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"react-dev-utils","version":{"version_data":[{"version_affected":"!=>","version_value":"5.0.2"},{"version_affected":">=","version_value":"5.0.0"},{"version_affected":"!=>","version_value":"4.2.2"},{"version_affected":">=","version_value":"4.0.0"},{"version_affected":"!=>","version_value":"3.1.2"},{"version_affected":">=","version_value":"3.0.0"},{"version_affected":"!=>","version_value":"2.0.2"},{"version_affected":">=","version_value":"2.0.0"},{"version_affected":"!=>","version_value":"1.0.4"},{"version_affected":">=","version_value":"1.0.0"},{"version_affected":"!<","version_value":"1.0.0"}]}}]},"vendor_name":"Facebook"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"react-dev-utils on Windows allows developers to run a local webserver for accepting various commands, including a command to launch an editor. The input to that command was not properly sanitized, allowing an attacker who can make a network request to the server (either via CSRF or by direct request) to execute arbitrary commands on the targeted system. This issue affects multiple branches: 1.x.x prior to 1.0.4, 2.x.x prior to 2.0.2, 3.x.x prior to 3.1.2, 4.x.x prior to 4.2.2, and 5.x.x prior to 5.0.2."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Improper Neutralization of Special Elements used in an OS Command (CWE-78)"}]}]},"references":{"reference_data":[{"name":"https://github.com/facebook/create-react-app/releases/tag/v1.1.5","refsource":"MISC","url":"https://github.com/facebook/create-react-app/releases/tag/v1.1.5"},{"name":"https://github.com/facebook/create-react-app/pull/4866","refsource":"MISC","url":"https://github.com/facebook/create-react-app/pull/4866"}]}},"nvd":{"publishedDate":"2018-12-31 22:29:00","lastModifiedDate":"2021-03-25 16:44:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":10},"severity":"HIGH","exploitabilityScore":10,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"AND","children":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:facebook:react-dev-utils:*:*:*:*:*:*:*:*","versionStartIncluding":"1.0.0","versionEndExcluding":"1.0.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:facebook:react-dev-utils:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"2.0.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:facebook:react-dev-utils:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.1.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:facebook:react-dev-utils:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.2.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:facebook:react-dev-utils:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0.0","versionEndExcluding":"5.0.2","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":false,"cpe23Uri":"cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*","cpe_name":[]}]}],"cpe_match":[]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"6342","Ordinal":"122405","Title":"CVE-2018-6342","CVE":"CVE-2018-6342","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"6342","Ordinal":"1","NoteData":"react-dev-utils on Windows allows developers to run a local webserver for accepting various commands, including a command to launch an editor. The input to that command was not properly sanitized, allowing an attacker who can make a network request to the server (either via CSRF or by direct request) to execute arbitrary commands on the targeted system. This issue affects multiple branches: 1.x.x prior to 1.0.4, 2.x.x prior to 2.0.2, 3.x.x prior to 3.1.2, 4.x.x prior to 4.2.2, and 5.x.x prior to 5.0.2.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"6342","Ordinal":"2","NoteData":"2018-12-31","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"6342","Ordinal":"3","NoteData":"2018-12-31","Type":"Other","Title":"Modified"}]}}}