~ / search / GHSA-xrjf-phvv-r4vr

GHSA-xrjf-phvv-r4vr

Command injection in strapi

Source: GitHub Advisory Database (reviewed) Moderate CVE-2022-0764

Packages

EcosystemPackageAffectedFixed in
npm strapi < 4.1.0 4.1.0

Details

As written in the advisory (Markdown source, shown as plain text).

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](https://github.com/strapi/strapi/blob/master/packages/generators/app/lib/utils/fetch-npm-template.js#L13), this happens due to improper sanitization of user input.

References

External links from the advisory. They lead to third-party sites.