# CVE-2022-32114: Strapi 4.1.12 Cross-site Scripting via crafted file

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.03%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-07-13T00:00:00.000Z
- Modified: 2026-07-02T16:00:48.177Z
- Also known as: GHSA-4vm8-j95f-j6v5
- Weaknesses: CWE-79, CWE-434
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- @strapi/strapi (npm): up to 4.1.12
- strapi strapi: 4.1.12

## Every score

- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://grimthereaperteam.medium.com/strapi-v4-1-12-unrestricted-file-upload-b993bfd07e4e> (exploit, third-party-advisory, web)
- <https://github.com/bypazs/strapi> (product, web)
- <https://docs.strapi.io/dev-docs/configurations/public-assets> (web)
- <https://docs.strapi.io/user-docs/users-roles-permissions/configuring-administrator-roles> (web)
- <https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/upload/admin/src/components/MediaLibraryInput/index.js#L33> (web)
- <https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/content-type-builder/admin/src/components/AllowedTypesSelect/index.js#L14> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-32114> (advisory)
- <https://github.com/strapi/strapi> (package)

## Sources

- CVE List: [CVE-2022-32114](https://www.cve.org/CVERecord?id=CVE-2022-32114), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-4vm8-j95f-j6v5](https://github.com/advisories/GHSA-4vm8-j95f-j6v5), CC-BY-4.0, modified 2024-03-21
- NVD: [CVE-2022-32114](https://nvd.nist.gov/vuln/detail/CVE-2022-32114), Public domain, modified 2026-07-02

---

Page: https://cve.day/CVE-2022-32114 · Whole record: https://cve.day/CVE-2022-32114.json · Rebuilt by cve.day 2026-11-25T22:58:12.934Z
