The "s init" command in Serverless-Devs @serverless-devs/s <= 3.1.11 passes unsanitized user input to child_process.spawn() with shell: true. A URL ending in ".git" bypasses the only input check, allowing OS command injection when a user runs "s init" with an attacker-controlled argument.
References
Configurations
No configuration.
History
No history.
Information
Published : 2026-08-03 21:16
Updated : 2026-09-09 16:04
NVD link : CVE-2026-51190
Mitre link : CVE-2026-51190
CVE.ORG link : CVE-2026-51190
JSON object : View
Products Affected
No product.
CWE
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
