Custom Related Posts <= 1.8.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Related Post Titles and Permalinks

Medium 6.4 CWE-79Fixed in 1.8.3
ID
WPSEC-2026-4416
Plugin
Custom Related Posts (custom-related-posts)
Affected
all versions before 1.8.3
Remediation
Update to 1.8.3 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-12-03
Attack surface
Custom Related Posts on WPSec AttackSurface
Fix released
Published

Description

The Custom Related Posts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via related post titles and permalinks in all versions up to, and including, 1.8.2. This is due to insufficient output escaping of the cached relation data in the front-end related posts list, the post edit meta box, the post search AJAX results and the meta box JavaScript. The relation cache is kept in the unprotected post meta keys crp_relations_from and crp_relations_to, which users can write as custom fields on posts they can edit. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts that execute whenever a user, including an administrator, views a page with the related posts or the affected post editing screen.

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