{
 "id": "WPSEC-2026-4232",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4232/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4232/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4232/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4232.json",
 "title": "Custom Contact Forms <= 7.21.0 - Authenticated (Author+) Insecure Direct Object Reference to Arbitrary Post Overwrite via Form Creation REST Route",
 "description": "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.",
 "plugin": {
  "slug": "custom-contact-forms",
  "name": "Custom Contact Forms",
  "full_name": "Custom Contact Forms",
  "wordpress_org": "https://wordpress.org/plugins/custom-contact-forms/",
  "advisories_url": "https://wpsec.com/vuln/plugin/custom-contact-forms/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/custom-contact-forms"
 },
 "type": "IDOR",
 "cwe": [
  "CWE-639"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.5,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "7.0",
    "from_inclusive": true,
    "to": "7.22.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 7.0 before 7.22.0"
  ]
 },
 "introduced_in": "7.0",
 "fixed_in": "7.22.0",
 "remediation": "Update to 7.22.0 or later.",
 "fix_released": "2026-11-28T17:57:32+00:00",
 "published": "2026-11-29T18:41:50+00:00",
 "updated": "2026-11-29T16:19:51.430652+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4232/",
  "https://plugins.svn.wordpress.org/custom-contact-forms/tags/7.22.0/",
  "https://wordpress.org/plugins/custom-contact-forms/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/custom-contact-forms",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-11-29"
 }
}