# CVE-2022-29622: Formidable arbitrary file upload via crafted filename

Source: https://junglewise.ai/threats/cve-2022-29622-formidable-arbitrary-file-upload-via-crafted-filename  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-17. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2022-29622 · Severity: low · CVSS 3.1 · Published 2022-05-17

Formidable is a popular Node.js library for handling file uploads in web applications. An arbitrary file upload vulnerability allows attackers to bypass upload restrictions by crafting malicious filenames, potentially leading to arbitrary code execution on servers using the vulnerable version.

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

## Quick answers

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

**How severe is CVE-2022-29622?** Low severity, with a CVSS score of 3.1, published 17 May 2022.

**Which products and versions are affected?** formidable (npm) SEMVER:introduced=0,fixed=3.2.4.

**Is there a fix for CVE-2022-29622?** Yes. formidable (npm): upgrade to 3.2.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

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

**Am I affected by CVE-2022-29622?** Check whether you run formidable (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.

## How to fix

- formidable (npm): upgrade to 3.2.4 or later

  ```sh
  npm install formidable@3.2.4
  ```


## Technical details

This is an arbitrary file upload vulnerability (CWE-434) in Formidable versions prior to 3.2.4, where attackers can exploit insufficient filename validation to upload files bypassing security checks. The vulnerability requires network access to upload functionality and no special privileges or user interaction. By crafting a malicious filename, an attacker can upload arbitrary files to the server, potentially achieving arbitrary code execution depending on server configuration and application logic. A patch is available in version 3.2.4 or later.

## Affected products

- formidable formidable before 3.2.4

## Identifiers

- CVE-2022-29622
- GHSA-8cp3-66vr-3r4c

## Timeline

- 2022-05-17: disclosed
- 2024-04-25: other: Advisory withdrawn as improperly assigned

## References

- [https://github.com/node-formidable/formidable/issues/856](https://github.com/node-formidable/formidable/issues/856)

## Related threats

- [Formidable weak cryptographic random in filename generation](https://junglewise.ai/threats/cve-2025-46653-formidable-weak-cryptographic-random-in-filename-generation)
