Vulnerabilities in pkg:npm/strapi

PACKAGE
Advisory Identifier: GHSA-9p2w-rmx4-9mw7
Advisory Summary

CVE-2019-19609 is a HIGH (CVSS 7.2) command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Strapi libraries in the npm ecosystem. The issue involves command injection in strapi. Remediation is available by upgrading affected packages to version 3.0.0-beta.17.8.

13 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/strapi

13 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/strapi. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-9p2w-rmx4-9mw7 CVE-2019-19609 HIGH Command Injection in strapi
GHSA-49vv-6q7q-w5cf - HIGH Duplicate Advisory: OS Command Injection in Strapi
GHSA-7frv-9phw-vrvr CVE-2020-27664 CRITICAL Authorization bypass in Strapi
GHSA-4phg-hpqm-c3j4 CVE-2022-31367 HIGH Strapi mishandles hidden attributes within admin API responses
GHSA-6xc2-mj39-q599 CVE-2019-18818 CRITICAL Strapi allows unauthenticated attacker to reset admin password without valid reset token
GHSA-mcqm-6ff4-53qx CVE-2022-29894 MODERATE Cross-site Scripting in Strapi
GHSA-65wv-528r-m892 CVE-2020-13961 MODERATE Improper Input Validation in strapi
GHSA-vgj7-895j-gpr6 CVE-2022-30618 HIGH Improper Removal of Sensitive Information Before Storage or Transfer in Strapi
GHSA-f6fm-r26q-p747 CVE-2022-30617 HIGH Improper Removal of Sensitive Information Before Storage or Transfer in Strapi
GHSA-85vg-grr5-pw42 CVE-2021-46440 HIGH Insecure password handling vulnerability in Strapi
GHSA-9qgm-w87q-hx89 CVE-2022-27263 CRITICAL Unrestricted Upload of File with Dangerous Type in Strapi
GHSA-xrjf-phvv-r4vr CVE-2022-0764 MODERATE Command injection in strapi
GHSA-37hx-4mcq-wc3h CVE-2021-28128 HIGH Weak Password Recovery Mechanism for Forgotten Password in Strapi

CVE-2019-19609 at a Glance

CVE Identifier CVE-2019-19609
GHSA Identifier GHSA-9p2w-rmx4-9mw7
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Strapi
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-19609

To remediate this vulnerability, upgrade all affected Strapi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

strapi fixed: 3.0.0-beta.17.8
npm install strapi@3.0.0-beta.17.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls strapi

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2019-19609, inspect your project dependencies using npm:

npm ls strapi

Analyze the terminal output to locate any version of Strapi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.0-beta.17.8), your application is affected.

Note: The npm ls strapi command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Strapi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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 in the server. ## Recommendation Upgrade to version 3.0.0-beta.17.8 or later

CVE-2019-19609 Affected Strapi Versions

1 component(s)
Fixed Versions:
3.0.0-beta.17.8
Product / Package Ecosystem Affected Versions Fixed Version
strapi
npm
< 3.0.0-beta.17.8
3.0.0-beta.17.8

References

Frequently Asked Questions

What is CVE-2019-19609?
CVE-2019-19609 is a security vulnerability in Strapi involving Command Injection in strapi under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Strapi versions are affected?
Affected versions include releases prior to 3.0.0-beta.17.8 across affected packages: strapi.
What version fixes CVE-2019-19609?
Upgrading to 3.0.0-beta.17.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is strapi affected?
Yes, strapi is affected in releases prior to 3.0.0-beta.17.8. Upgrade your dependency to 3.0.0-beta.17.8 or later.
What is the CVSS score of CVE-2019-19609?
CVE-2019-19609 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-19609?
CVE-2019-19609 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2019-19609?
Run the dependency tree command: 'npm ls strapi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9p2w-rmx4-9mw7",
  "modified" : "2025-12-29T15:34:55Z",
  "published" : "2020-09-04T16:54:02Z",
  "aliases" : [ "CVE-2019-19609" ],
  "summary" : "Command Injection in strapi",
  "details" : "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 in the server.\n\n\n## Recommendation\n\nUpgrade to version 3.0.0-beta.17.8 or later",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "strapi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.0-beta.17.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.0-beta.17.7"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-19609"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/strapi/strapi/pull/4636"
  }, {
    "type" : "WEB",
    "url" : "https://bittherapy.net/post/strapi-framework-remote-code-execution"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/strapi/strapi"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1424"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/163940/Strapi-3.0.0-beta.17.7-Remote-Code-Execution.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/163950/Strapi-CMS-3.0.0-beta.17.4-Remote-Code-Execution.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:58:49Z",
    "nvd_published_at" : null
  }
}