{"id":"CVE-2022-32114","aliases":["GHSA-4vm8-j95f-j6v5"],"url":"https://o3.security/vulnerability/CVE-2022-32114","summary":"Strapi 4.1.12 Cross-site Scripting via crafted file","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.","published":"2022-07-13T00:00:00Z","modified":"2026-08-12T03:51:34.574543810Z","cvss":{"score":4.6,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N"},"epss":{"score":0.01956,"percentile":0.78928,"asOf":"2026-09-04"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"@strapi/strapi","fixedVersion":null}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:34.574543810Z"}}