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

Medium 4.3 CWE-639Fixed in 1.6.30
ID
WPSEC-2026-4052
Plugin
weForms – Easy Drag & Drop Contact Form Builder For WordPress (weforms)
Affected
from 1.4.1 before 1.6.30
Remediation
Update to 1.6.30 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-639
Usage
Plugin Low · Affected versions None seen among sites WPSec scans, 2026-11-27
Attack surface
weForms – Easy Drag & Drop Contact Form Builder For WordPress on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0