# 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`), https://wordpress.org/plugins/custom-contact-forms/
- **Affected versions:** from 7.3 before 7.22.2
- **Fixed in:** 7.22.2 (Update to 7.22.2 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N)
- **Weakness:** CWE-269
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-05)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/custom-contact-forms
- **Fix released:** 2026-12-04
- **Published:** 2026-12-05
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4695/

## 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/

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

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.
