GitHub Advisoryadvisory · npm
GHSA-xrjf-phvv-r4vr Command injection in strapi
MEDIUM
Official page ↗
- Aliases
- CVE-2022-0764
- Ecosystem
- npm
- Packages
- strapi
- Severity
- Moderate
- CVSS vector
- CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L
- Weaknesses
- CWE-77, CWE-78
- Reviewed
- 2022-03-01
Affected packages
• npm strapi: < 4.1.0 → fixed in 4.1.0
Description
When creating a strapi app using npxcreate-strapi-app, we can inject arbitrary commands through the template cli argument as per the code in this particular link, this happens due to improper sanitization of user input.
Related
Alias · CVE (1)
- CVE-2022-0764 Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0. vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-0764 advisory
- https://github.com/strapi/strapi/issues/12879 web
- https://github.com/strapi/strapi/commit/2a3f5e988be6a2c7dae5ac22b9e86d579b462f4c web
- https://github.com/strapi/strapi package
- https://github.com/strapi/strapi/blob/master/packages/generators/app/lib/utils/fetch-npm-template.js#L13 web
- https://huntr.dev/bounties/001d1c29-805a-4035-93bb-71a0e81da3e5 web
- https://www.github.com/strapi/strapi/commit/2a3f5e988be6a2c7dae5ac22b9e86d579b462f4c web