Vulnerabilities / CP Related Posts / WPSEC-2026-4217

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

High 8.8 CWE-502Fixed in 1.3.0
ID
WPSEC-2026-4217
Plugin
CP Related Posts (cp-related-posts)
Affected
all versions before 1.3.0
Remediation
Update to 1.3.0 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-502
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-28
Attack surface
CP Related Posts on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0