{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4695",
 "modified": "2026-12-05T15:40:58Z",
 "published": "2026-12-05T15:40:58Z",
 "summary": "Custom Contact Forms <= 7.22.1 - Authenticated (Contributor+) Privilege Escalation via Form Post Creation Settings",
 "details": "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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "custom-contact-forms"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "7.3"
      },
      {
       "fixed": "7.22.2"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 7.3 before 7.22.2"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4695/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/custom-contact-forms/tags/7.22.2/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/custom-contact-forms/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4695/",
  "cwe_ids": [
   "CWE-269"
  ],
  "vulnerability_type": "PRIV",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
