Custom Contact Forms <= 7.22.1 - Authenticated (Contributor+) Privilege Escalation via Form Post Creation Settings
- ID
- WPSEC-2026-4695
- Plugin
- Custom Contact Forms (custom-contact-forms)
- Affected
- from 7.3 before 7.22.2
- Remediation
- Update to 7.22.2 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Weakness
- CWE-269
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-05
- Attack surface
- Custom Contact Forms on WPSec AttackSurface
- Fix released
- Published
Description
The Custom Contact Forms plugin for WordPress is vulnerable to Privilege Escalation via the form save REST route (/ccf/v1/forms) and the "Create a post from each submission" feature in all versions up to, and including, 7.22.1. This is due to missing capability checks. Forms were always saved as published, the post creation type and status were stored without checking whether the user may create or publish that content type, and submissions created posts with the stored type and status without checking the form author's capabilities. This makes it possible for authenticated attackers, with Contributor-level access and above, to publish forms and configure them so that each submission creates published posts or pages, or posts of other types, beyond what their role permits. Custom field mappings could also write protected post meta (keys starting with an underscore) on the created posts.
References
- https://wpsec.com/vuln/WPSEC-2026-4695/
- https://plugins.svn.wordpress.org/custom-contact-forms/tags/7.22.2/
- https://wordpress.org/plugins/custom-contact-forms/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS