# CP Related Posts <= 1.2.0 - Authenticated (Contributor+) PHP Object Injection via 'cprp_tags' Post Meta

- **ID:** WPSEC-2026-4217
- **Plugin:** CP Related Posts (`cp-related-posts`), https://wordpress.org/plugins/cp-related-posts/
- **Affected versions:** all versions before 1.3.0
- **Fixed in:** 1.3.0 (Update to 1.3.0 or later.)
- **Severity:** High 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-502
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-28)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/cp-related-posts
- **Fix released:** 2026-11-28
- **Published:** 2026-11-29
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4217/

## Description

The CP Related Posts plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 1.2.0, due to deserialization of untrusted input from the 'cprp_tags' post meta value. When related posts are generated, the value is passed to unserialize() without restricting allowed classes, both when it is read as a string with get_post_meta() and when the raw meta_value of other published posts is read from the database. The 'cprp_tags' meta key is not protected, so users who can edit a post can set it as a custom field. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject a PHP object. No known POP chain is present in the plugin itself. If a POP chain is present via another plugin or theme on the target system, it could allow the attacker to delete arbitrary files, retrieve sensitive data, or execute code.

## References

- https://wpsec.com/vuln/WPSEC-2026-4217/
- https://plugins.svn.wordpress.org/cp-related-posts/tags/1.3.0/
- https://wordpress.org/plugins/cp-related-posts/

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

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.
