CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2022 · Strapi

CVE-2022-32114
Strapi vulnerability

An unrestricted file upload vulnerability in the Add New Assets function of Strapi 4.1.12 allows attackers to conduct XSS attacks via a crafted PDF file. NOTE: the project documentation suggests that a user with the Media Library "Create (upload)" permission is supposed to be able to upload PDF files containing JavaScript, and that all files in a public assets folder are accessible to the outside world (unless the filename begins with a dot character). The administrator can choose to allow only image, video, and audio files (i.e., not PDF) if desired.

Affected products

Strapi. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Strapi runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Strapi products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.