CVE-2026-51190: n/a
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.
AI Analysis
Technical Summary
The 's init' command in Serverless-Devs @serverless-devs/s versions <= 3.1.11 improperly handles user input by passing it unsanitized to child_process.spawn() with shell: true. The input validation attempts to restrict inputs but can be bypassed by URLs ending with '.git'. This flaw allows an attacker to execute arbitrary operating system commands, leading to full confidentiality, integrity, and availability compromise as reflected by the CVSS 9.8 score.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary OS commands without authentication or user interaction, resulting in complete system compromise including full control over confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid running the 's init' command with untrusted input, especially URLs ending in '.git'.
CVE-2026-51190: n/a
Description
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.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 's init' command in Serverless-Devs @serverless-devs/s versions <= 3.1.11 improperly handles user input by passing it unsanitized to child_process.spawn() with shell: true. The input validation attempts to restrict inputs but can be bypassed by URLs ending with '.git'. This flaw allows an attacker to execute arbitrary operating system commands, leading to full confidentiality, integrity, and availability compromise as reflected by the CVSS 9.8 score.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary OS commands without authentication or user interaction, resulting in complete system compromise including full control over confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid running the 's init' command with untrusted input, especially URLs ending in '.git'.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-06-07T00:00:00.000Z
- State
- PUBLISHED
Threat ID: 6a7105c0bf32cb7a3436d79d
Added to database: 08/03/2026, 21:18:56 UTC
Last enriched: 08/11/2026, 17:25:27 UTC
Last updated: 09/17/2026, 22:01:36 UTC
Views: 45
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.