{"id":"CVE-2022-32114","details":"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.","aliases":["GHSA-4vm8-j95f-j6v5"],"modified":"2026-08-12T03:51:34.574543810Z","published":"2022-07-13T00:00:00Z","database_specific":{"cna_assigner":"mitre","isDisputed":true,"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/32xxx/CVE-2022-32114.json"},"references":[{"type":"WEB","url":"https://docs.strapi.io/dev-docs/configurations/public-assets"},{"type":"WEB","url":"https://docs.strapi.io/user-docs/users-roles-permissions/configuring-administrator-roles"},{"type":"WEB","url":"https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/content-type-builder/admin/src/components/AllowedTypesSelect/index.js#L14"},{"type":"WEB","url":"https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/upload/admin/src/components/MediaLibraryInput/index.js#L33"},{"type":"WEB","url":"https://grimthereaperteam.medium.com/strapi-v4-1-12-unrestricted-file-upload-b993bfd07e4e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/32xxx/CVE-2022-32114.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32114"},{"type":"PACKAGE","url":"https://github.com/bypazs/strapi"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/strapi/strapi","events":[{"introduced":"ab698015cfc4f43fa0ce2ae94ec59e00a67e4cda"},{"last_affected":"ab698015cfc4f43fa0ce2ae94ec59e00a67e4cda"}],"database_specific":{"extracted_events":[{"introduced":"4.1.12"},{"last_affected":"4.1.12"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:strapi:strapi:4.1.12:*:*:*:*:*:*:*"}}],"versions":["4.1.12","v4.1.12"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-32114.json"}}],"schema_version":"1.9.0"}