# CVE-2022-29894: Strapi stored cross-site scripting in file upload

Source: https://junglewise.ai/threats/cve-2022-29894-strapi-stored-cross-site-scripting-in-file-upload  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-06-14. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2022-29894 · Severity: low · CVSS 3.1 · Published 2022-06-14

Strapi is an open-source headless CMS platform used to manage and deliver content across applications. A stored cross-site scripting vulnerability in the file upload functionality allows an attacker with administrative privileges to inject malicious scripts that execute in the browsers of other admin users, potentially leading to session hijacking, credential theft, or unauthorized actions on the CMS.

Technologies: [strapi (npm)](https://junglewise.ai/threats/technologies/strapi). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2022-29894 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-29894 being exploited in the wild.

**How severe is CVE-2022-29894?** Low severity, with a CVSS score of 3.1, published 14 June 2022.

**Which products and versions are affected?** strapi (npm) SEMVER:introduced=0,last_affected=3.6.10.

**Is there a fix for CVE-2022-29894?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2022-29894 attacked?** It is attacked over the network.

**Am I affected by CVE-2022-29894?** Check whether you run strapi (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a stored cross-site scripting (CWE-79) flaw in Strapi versions 3.6.10 and earlier, triggered through the file upload functionality. An authenticated administrator can upload a file containing malicious JavaScript that is not properly sanitized, causing the script to execute when other privileged users view or interact with the uploaded file. The attack requires an authenticated account with administrative privileges and user interaction (viewing the malicious content), but once stored, the payload persists and affects multiple users. No patch information is provided in the available advisory data.

## Affected products

- Strapi Strapi 3.6.10 and earlier

## Identifiers

- CVE-2022-29894
- GHSA-mcqm-6ff4-53qx

## Timeline

- 2022-06-14: disclosed

## References

- [https://github.com/strapi/strapi](https://github.com/strapi/strapi)

## Related threats

- [Strapi information disclosure via hidden attributes in admin API](https://junglewise.ai/threats/cve-2022-31367-strapi-information-disclosure-via-hidden-attributes-in-admin-api)
- [Strapi improper input validation in email templates](https://junglewise.ai/threats/cve-2020-13961-strapi-improper-input-validation-in-email-templates)
- [Strapi sensitive information disclosure in admin panel](https://junglewise.ai/threats/cve-2022-30618-strapi-sensitive-information-disclosure-in-admin-panel)
- [Strapi sensitive information disclosure in admin responses](https://junglewise.ai/threats/cve-2022-30617-strapi-sensitive-information-disclosure-in-admin-responses)
- [Strapi insecure password handling in documentation plugin](https://junglewise.ai/threats/cve-2021-46440-strapi-insecure-password-handling-in-documentation-plugin)
