{"id":"CVE-2021-24033","aliases":["CVE-2021-24033","GHSA-5q6m-3h65-w53x"],"related":[],"kind":"vulnerability","state":"published","title":"react-dev-utils OS Command Injection in function `getProcessForPort`","summary":"react-dev-utils prior to v11.0.4 exposes a function, getProcessForPort, where an input argument is concatenated into a command string to be executed. This function is typically used from react-scripts (in Create React App projects), where the usage is safe. Only when this function is manually invoked with user-provided values (ie: by custom code) is there the potential for command injection. If you're consuming it from react-scripts then this issue does not affect you.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"react-dev-utils prior to v11.0.4 exposes a function, getProcessForPort, where an input argument is concatenated into a command string to be executed. This function is typically used from react-scripts (in Create React App projects), where the usage is safe. Only when this function is manually invoked with user-provided values (ie: by custom code) is there the potential for command injection. If you're consuming it from react-scripts then this issue does not affect you.","source":"cvelist"},{"lang":"en","text":"react-dev-utils prior to v11.0.4 exposes a function, `getProcessForPort`, where an input argument is concatenated into a command string to be executed. This function is typically used from react-scripts (in Create React App projects), where the usage is safe. Only when this function is manually invoked with user-provided values (ie: by custom code) is there the potential for command injection. If you're consuming it from react-scripts then this issue does not affect you.","format":"markdown","source":"ghsa"},{"lang":"es","text":"react-dev-utils anterior a versión v11.0.4, expone una función, getProcessForPort, donde un argumento de entrada se concatena en una cadena de comando para ser ejecutado.&#xa0;Esta función se usa generalmente desde react-scripts (en los proyectos de Create React App), donde el uso es seguro.&#xa0;Solo cuando esta función se invoca manualmente con valores proporcionados por el usuario (es decir, mediante código personalizado) existe la posibilidad de inyección de comandos.&#xa0;Si lo consume desde react-scripts, este problema no le afecta","source":"nvd"}],"published":"2021-03-09T00:25:13.000Z","modified":"2026-06-17T03:39:11.750Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"11.0.4","fixed":"unspecified","status":"unaffected"},{"type":"custom","introduced":"unspecified","fixed":"11.0.4","status":"affected"}],"vendor":"Facebook","product":"react-dev-utils","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.4.0","status":"affected","fixed":"11.0.4"}],"ecosystem":"npm","package":"react-dev-utils","purl":"pkg:npm/react-dev-utils","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"11.0.4"}],"vendor":"facebook","product":"react-dev-utils","cpe":"cpe:2.3:a:facebook:react-dev-utils:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/facebook/create-react-app/pull/10644","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.facebook.com/security/advisories/cve-2021-24033","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24033","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/facebook/create-react-app/commit/f5e415f3a5b66f07dcc60aba1b445fa7cda97268","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/facebook/create-react-app","tags":["package"],"sources":["ghsa"]},{"url":"https://www.huntr.dev/bounties/1-npm-react-dev-utils","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"facebook","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-24033","url":"https://www.cve.org/CVERecord?id=CVE-2021-24033","licence":"CVE Terms of Use","modified":"2024-08-03T19:21:17.286Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5q6m-3h65-w53x","url":"https://github.com/advisories/GHSA-5q6m-3h65-w53x","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:14.230Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-24033","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24033","licence":"Public domain","modified":"2026-06-17T03:39:11.750Z"}],"updatedAt":"2026-11-25T22:58:00.181Z","epss":{"score":0.03289,"percentile":0.88804,"date":"2026-12-01T12:00:22.000Z"}}