Related Posts for WordPress <= 2.3.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Post Title

Medium 6.4 CWE-79Fixed in 3.0.0
ID
WPSEC-2026-0808
Plugin
Related Posts for WordPress (related-posts-for-wp)
Affected
all versions before 3.0.0
Remediation
Update to 3.0.0 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 Low · Affected versions None seen among sites WPSec scans, 2026-10-12
Attack surface
Related Posts for WordPress on WPSec AttackSurface
Fix released
Published

Description

The Related Posts for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post titles in all versions up to, and including, 2.3.1 due to insufficient output escaping of related posts' titles in the 'Related Posts' meta box of the post editor, where the title is printed unescaped inside a single-quoted HTML attribute. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts through a crafted post title that execute whenever an editor or administrator opens a post to which the attacker's post is linked as a related post, for example a post the attacker submitted for review.

References

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

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

License: CC BY 4.0