CVE-2026-126537: Ninja Forms File Uploads Plugin: Unauthenticated Arbitrary File Deletion via Path Traversal
The Ninja Forms File Uploads add-on for WordPress up to version 3.3.36 allows unauthenticated attackers to delete arbitrary files on the server by omitting the upload_id parameter and manipulating the file_path field. Attackers can delete critical files such as wp-config.php, leading to co
A path traversal vulnerability in the Ninja Forms File Uploads plugin allows unauthenticated attackers to craft requests that bypass upload directory containment checks and delete arbitrary files. By omitting the upload_id parameter in their request, attackers can supply a malicious file_path that survives validation and is passed directly to the server's unlink() function, enabling deletion of any file accessible to the web server process, including wp-config.php.
| CVE | CVE-2026-126537 |
|---|---|
| Severity | Critical (CVSS 9.1) |
| Actively exploited | Not confirmed at time of writing |
| Weakness | CWE-22 (path traversal) |
| Attack vector | Network |
| Privileges required | None |
| User interaction | None |
| Published | 11 Nov 2026 |
How the attack works
The vulnerability spans two functions: NF_FU_Fields_Upload::process() returns early when a public submission carries a nonempty extra.saveProgress, leaving client-supplied files[] data intact, and NF_FU_External_Abstracts_Service::process_upload() only reloads the authoritative path when the client sends upload_id. By omitting upload_id, an attacker's data[file_path] survives into the Background Upload queue. The plugin's own is_path_within_upload_dir() containment check is only applied on admin paths, not on background queue processing. The unlink() call in includes/external/abstracts/backgroundupload.php then deletes the file specified in file_path without canonicalization or path validation, allowing traversal to any location the web server can access.
Who is affected
WordPress sites using the Ninja Forms File Uploads add-on in versions up to and including 3.3.36 are affected. Any public-facing WordPress site using this plugin without authentication restrictions is at immediate risk of file deletion and potential remote code execution.
How to check if you're exposed
- Verify the Ninja Forms File Uploads plugin version in the WordPress admin dashboard or by checking wp-content/plugins/ninja-forms-uploads/ninja-forms-uploads.php
- Review web server access logs for POST requests to endpoints like /wp-admin/admin-ajax.php?action=nf_fu_upload with unusual file_path parameters or requests containing path traversal sequences (../, ..\ or URL-encoded variants)
- Check for recent unexpected file deletions, particularly wp-config.php, wp-load.php, or other critical WordPress files in web server audit logs or file integrity monitoring alerts
- Search WordPress database for suspicious entries in wp_postmeta or plugin-specific tables related to file upload queues
How to fix it
- Update Ninja Forms File Uploads to the latest available version from the WordPress plugin repository
- If wp-config.php or other critical files were deleted, restore them from a verified backup taken before the attack
- Audit file system permissions to ensure the web server process runs with the minimum necessary privileges
- Regenerate WordPress security keys and salts in wp-config.php if it was accessed or modified by attackers
If you can't patch yet
- Disable the Ninja Forms File Uploads plugin immediately if you cannot patch promptly; use an alternative file upload solution or implement file uploads outside WordPress until patched
- Implement Web Application Firewall (WAF) rules to block requests to file upload endpoints that contain path traversal sequences or omit expected parameters
- Monitor file system changes in real-time using file integrity monitoring (FIM) tools to detect unauthorized deletions of critical WordPress files
Need help checking your exposure or patching at scale? FutureOps InfoTech can help.