{"id":"CVE-2022-32114","url":"https://www.cyber-defence.io/tools/cve/CVE-2022-32114","generatedAt":"2026-10-27T20:53:59.311Z","title":"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.","description":"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-13T21:15:08.000Z","lastModified":"2026-07-02T16:00:48.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-434"],"affected":["strapi/strapi"],"epss":{"score":0.01974,"percentile":0.80339,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (1.97%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://docs.strapi.io/dev-docs/configurations/public-assets","source":"cve@mitre.org"},{"url":"https://docs.strapi.io/user-docs/users-roles-permissions/configuring-administrator-roles","source":"cve@mitre.org"},{"url":"https://github.com/bypazs/strapi","tags":["Product"],"source":"cve@mitre.org"},{"url":"https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/content-type-builder/admin/src/components/AllowedTypesSelect/index.js#L14","source":"cve@mitre.org"},{"url":"https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/upload/admin/src/components/MediaLibraryInput/index.js#L33","source":"cve@mitre.org"},{"url":"https://grimthereaperteam.medium.com/strapi-v4-1-12-unrestricted-file-upload-b993bfd07e4e","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://docs.strapi.io/dev-docs/configurations/public-assets","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://docs.strapi.io/user-docs/users-roles-permissions/configuring-administrator-roles","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/bypazs/strapi","tags":["Product"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/content-type-builder/admin/src/components/AllowedTypesSelect/index.js#L14","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/upload/admin/src/components/MediaLibraryInput/index.js#L33","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://grimthereaperteam.medium.com/strapi-v4-1-12-unrestricted-file-upload-b993bfd07e4e","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-32114","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}