{"id":"CVE-2025-66219","aliases":["CVE-2025-66219","GHSA-j9wj-m24m-7jj6"],"related":[],"kind":"vulnerability","state":"published","title":"willitmerge has a command Injection vulnerability","summary":"willitmerge is a command line tool to check if pull requests are mergeable. In versions 0.2.1 and prior, there is a command Injection vulnerability in willitmerge. The vulnerability manifests in this package due to the use of insecure child process execution API (exec) to which it concatenates user input, whether provided to the command-line flag, or is in user control in the target repository. At time of publication, no known fix is public.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"willitmerge is a command line tool to check if pull requests are mergeable. In versions 0.2.1 and prior, there is a command Injection vulnerability in willitmerge. The vulnerability manifests in this package due to the use of insecure child process execution API (exec) to which it concatenates user input, whether provided to the command-line flag, or is in user control in the target repository. At time of publication, no known fix is public.","source":"cvelist"},{"lang":"en","text":"willitmerge describes itself as a command line tool to check if pull requests are mergeable. There is a Command Injection vulnerability in version `willitmerge@0.2.1`.\n\nResources: \n * Project's GitHub source code: https://github.com/shama/willitmerge/\n * Project's npm package: https://www.npmjs.com/package/willitmerge\n\n## Background on exploitation\n\nReporting a Command Injection vulnerability in `willitmerge` npm package.\n\nA security vulnerability manifests in this package due to the use of insecure child process execution API (`exec`) to which it concateanes user input, whether provided to the command-line flag, or is in user control in the target repository.\n\n## Exploit \n\n### POC 1\n\n1. Install `willitmerge`\n2. Run it with the following command\n\n```sh\nwillitmerge --verbose --remote \"https://github.com/lirantal/npq.git; touch /tmp/hel\"\n```\n\n3. Confirm the file `/tmp/hel` is created on disk\n\n### GitHub-sourced attack vector\n\n[Lines 189-197](https://github.com/shama/willitmerge/blob/2fe91d05191fb05ac6da685828d109a3a5885028/lib/willitmerge.js#L189-L197) in `lib/willitmerge.js`\npass user input controlled by repository collaborators into the git command:\n\n```js\n  var cmds = [\n    'git checkout -b ' + branch + ' ' + that.options.remote + '/' + iss.base.ref,\n    'git remote add ' + branch + ' ' + gitUrl,\n    'git pull ' + branch + ' ' + iss.head.ref,\n    'git reset --merge HEAD',\n    'git checkout ' + origBranch,\n    'git branch -D ' + branch,\n    'git remote rm ' + branch\n  ];\n```\n\nUsers creating malicious branch names such as `;{echo,hello,world}>/tmp/c`\n\nThis is a similar attack vector to that which was reported for the [pullit vulnerability (https://security.snyk.io/vuln/npm:pullit:20180214)\n\n# Author\n\nLiran Tal","format":"markdown","source":"ghsa"},{"lang":"es","text":"willitmerge es una herramienta de línea de comandos para verificar si las solicitudes de extracción son fusionables. En las versiones 0.2.1 y anteriores, existe una vulnerabilidad de inyección de comandos en willitmerge. La vulnerabilidad se manifiesta en este paquete debido al uso de una API (exec) de ejecución de procesos secundarios insegura a la que concatena la entrada del usuario, ya sea proporcionada al indicador de línea de comandos o que está bajo el control del usuario en el repositorio de destino. En el momento de la publicación, no se conoce ninguna solución pública.","source":"nvd"}],"published":"2025-11-26T22:09:27.000Z","modified":"2026-10-07T20:10:01.970Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"version":"<= 0.2.1","status":"affected"}],"vendor":"shama","product":"willitmerge","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.2.1"}],"ecosystem":"npm","package":"willitmerge","purl":"pkg:npm/willitmerge","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"0.2.1"}],"vendor":"dontkry","product":"willitmerge","cpe":"cpe:2.3:a:dontkry:willitmerge:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/shama/willitmerge/security/advisories/GHSA-j9wj-m24m-7jj6","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/shama/willitmerge/blob/2fe91d05191fb05ac6da685828d109a3a5885028/lib/willitmerge.js#L189-L197","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66219","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/shama/willitmerge","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-12-01T18:43:43.662Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66219","url":"https://www.cve.org/CVERecord?id=CVE-2025-66219","licence":"CVE Terms of Use","modified":"2025-12-01T19:15:03.332Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j9wj-m24m-7jj6","url":"https://github.com/advisories/GHSA-j9wj-m24m-7jj6","licence":"CC-BY-4.0","modified":"2025-12-01T17:03:45.099Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66219","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66219","licence":"Public domain","modified":"2026-10-07T20:10:01.970Z"}],"updatedAt":"2026-11-25T22:59:08.089Z","epss":{"score":0.02659,"percentile":0.86108,"date":"2026-12-01T12:00:22.000Z"}}