# weForms – Easy Drag & Drop Contact Form Builder For WordPress <= 1.6.29 - Authenticated (Subscriber+) Insecure Direct Object Reference to Media Library Item Modification via REST File Upload

- **ID:** WPSEC-2026-4052
- **Plugin:** weForms – Easy Drag & Drop Contact Form Builder For WordPress (`weforms`), https://wordpress.org/plugins/weforms/
- **Affected versions:** from 1.4.1 before 1.6.30
- **Fixed in:** 1.6.30 (Update to 1.6.30 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/weforms
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4052/

## Description

The weForms plugin for WordPress is vulnerable to Insecure Direct Object Reference via the weforms/v1/uploads/<form_id>/files REST endpoint in all versions up to, and including, 1.6.29, due to the upload handler passing the whole client request, including the 'id' and 'post' parameters, to the core media controller's create_item method after a permission check that only requires the 'read' capability, without checking that the user may edit the target attachment. This makes it possible for authenticated attackers, with subscriber-level access and above, to overwrite existing media library attachments: they can replace the file an attachment points to, change its title and parent post, and tag it as a weForms upload.

## References

- https://wpsec.com/vuln/WPSEC-2026-4052/
- https://plugins.svn.wordpress.org/weforms/tags/1.6.30/
- https://wordpress.org/plugins/weforms/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4052/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
