Vulnerability in Contextual Related Posts — CVE-2026-85653
MediumSeverity
0.4%Estimated exploit probability
50,000+ sitesInstalls
4.4.2Fixed in
What to do now
Update Contextual Related Posts to 4.4.2 or later.
Affected versions
- Everything up to and including 4.4.1
Affected: Contextual Related Posts (plugin, contextual-related-posts)
What the vulnerability is
The Contextual Related Posts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'other_attributes' Block Parameter in all versions up to, and including, 4.4.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Sources
- https://plugins.trac.wordpress.org/browser/contextual-related-posts/tags/4.2.4/includes/frontend/blocks/class-blocks.php#L95
- https://plugins.trac.wordpress.org/browser/contextual-related-posts/tags/4.2.4/includes/frontend/class-media-handler.php#L133
- https://plugins.trac.wordpress.org/browser/contextual-related-posts/tags/4.2.4/includes/frontend/class-media-handler.php#L854
- https://plugins.trac.wordpress.org/browser/contextual-related-posts/tags/4.2.4/includes/frontend/class-media-handler.php#L972
- https://plugins.trac.wordpress.org/browser/contextual-related-posts/tags/4.4.0/includes/frontend/blocks/class-blocks.php#L95
- https://plugins.trac.wordpress.org/browser/contextual-related-posts/tags/4.4.0/includes/frontend/class-media-handler.php#L133