# Custom post types, Custom Fields & more <= 5.0.7 - Authenticated (Subscriber+) Missing Authorization to Plugin AJAX Actions

- **ID:** WPSEC-2026-4215
- **Plugin:** Custom post types, Custom Fields & more (`custom-post-types`), https://wordpress.org/plugins/custom-post-types/
- **Affected versions:** all versions before 6.0.0
- **Fixed in:** 6.0.0 (Update to 6.0.0 or later.)
- **Severity:** Medium 4.2 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N)
- **Weakness:** CWE-862
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-28)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/custom-post-types
- **Fix released:** 2026-11-27
- **Published:** 2026-11-28
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4215/

## Description

The Custom post types, Custom Fields & more plugin for WordPress is vulnerable to unauthorized access via the plugin's AJAX actions (cpt-dismiss-notice, cpt-get-post_rel-options, cpt-get-tax_rel-options, cpt-get-repeater-group, cpt-get-repeater-extra-fields) in all versions up to, and including, 5.0.7, due to a missing capability check in the AJAX dispatcher, which only verified a nonce. That nonce is printed on every admin screen that shows plugin fields, including the user profile screen when a field group is assigned to users. This makes it possible for authenticated attackers, with subscriber-level access and above, to list the titles of published posts of any post type and the terms of any taxonomy, including non-public ones, and to dismiss plugin admin notices for all users.

## References

- https://wpsec.com/vuln/WPSEC-2026-4215/
- https://plugins.svn.wordpress.org/custom-post-types/tags/6.0.0/
- https://wordpress.org/plugins/custom-post-types/

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

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.
