Command Injection in strapi

strapi Updated 02 Oct 2025

Summary

04/09/2020
HIGH
Yes i
High
Not published

GHSA-9p2w-rmx4-9mw7: Command Injection in strapi. Affects strapi versions < 3.0.0-beta.17.8. Fixed in 3.0.0-beta.17.8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Strapi is an open-source headless CMS (Content Management System) built with Node.js. It allows developers to quickly build APIs and manage content for their applications. Strapi provides an admin panel for easy content management and supports various plugins for extended functionality.

Vulnerability Detail

Versions of strapi before 3.0.0-beta.17.8 are vulnerable to Command Injection. The package fails to sanitize plugin names in the /admin/plugins/install/ route. This may allow an authenticated attacker with admin privileges to run arbitrary commands on the server. The vulnerability has a severity rating of HIGH (CWE-77).

How To Fix

Latest published version: 3.6.11 as of 22 Oct 2026

npm install strapi@3.6.11

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.0.0-beta.17.8

This is the first release that contains the fix.

npm install strapi@3.0.0-beta.17.8

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to upgrade to the fixed version to mitigate the risk of command injection.

Conclusion

Command Injection vulnerability in strapi versions before 3.0.0-beta.17.8 allows an authenticated attacker with admin privileges to execute arbitrary commands on the server. It is recommended to upgrade to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for strapi →

Share this vulnerability

FAQ

The vulnerability allows an authenticated attacker with admin privileges to execute arbitrary commands on the server, potentially leading to unauthorized access, data loss, or further compromise of the system.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert analyzes your package-lock.json file to identify any open-source vulnerabilities in your software.

No, only versions before 3.0.0-beta.17.8 are affected. It is recommended to upgrade to the latest version to ensure the vulnerability is patched.

Yes, the attacker needs to have authenticated access with admin privileges to exploit this vulnerability.

There are no known public exploits for this vulnerability at the time of this advisory. However, it is crucial to upgrade to the fixed version to prevent any potential exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for strapi.

How To Fix

Latest published version: 3.6.11 as of 22 Oct 2026

npm install strapi@3.6.11

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.0.0-beta.17.8

This is the first release that contains the fix.

npm install strapi@3.0.0-beta.17.8

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback