{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4232",
 "modified": "2026-11-29T18:41:50Z",
 "published": "2026-11-29T18:41:50Z",
 "summary": "Custom Contact Forms <= 7.21.0 - Authenticated (Author+) Insecure Direct Object Reference to Arbitrary Post Overwrite via Form Creation REST Route",
 "details": "The Custom Contact Forms plugin for WordPress is vulnerable to Insecure Direct Object Reference via the form creation REST API route (POST /wp-json/ccf/v1/forms) in all versions up to, and including, 7.21.0. This is due to the 'id' value in the request body being passed directly to wp_insert_post() as the post ID, without checking that the target post is a form or that the user is allowed to edit it. This makes it possible for authenticated attackers, with author-level access and above, to overwrite arbitrary posts, pages or forms, including content owned by other users and administrators. The overwritten post is turned into a published form, its title is replaced and its content is erased.",
 "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.0"
      },
      {
       "fixed": "7.22.0"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 7.0 before 7.22.0"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4232/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/custom-contact-forms/tags/7.22.0/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/custom-contact-forms/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4232/",
  "cwe_ids": [
   "CWE-639"
  ],
  "vulnerability_type": "IDOR",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
