{
 "id": "WPSEC-2026-3694",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3694/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3694/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3694/index.md",
 "title": "Contextual Related Posts <= 4.5.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via Post Title in Shortcode and Block Heading Template",
 "description": "The Contextual Related Posts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the %postname% placeholder in versions 1.9 up to, and including, 4.5.6 due to the post title being inserted unescaped for the %postname% placeholder after the heading template supplied through the [crp] shortcode or Related Posts block 'title' attribute has been sanitized. Because WordPress leaves double quotes in post titles, an attacker can place %postname% inside an HTML attribute of the template and use a crafted title to break out of it and add event handlers. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.",
 "plugin": {
  "slug": "contextual-related-posts",
  "name": "Contextual Related Posts",
  "full_name": "Contextual Related Posts",
  "wordpress_org": "https://wordpress.org/plugins/contextual-related-posts/",
  "advisories_url": "https://wpsec.com/vuln/plugin/contextual-related-posts/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/contextual-related-posts"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.9",
    "from_inclusive": true,
    "to": "4.5.7",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.9 before 4.5.7"
  ]
 },
 "introduced_in": "1.9",
 "fixed_in": "4.5.7",
 "remediation": "Update to 4.5.7 or later.",
 "fix_released": "2026-11-21T04:21:32+00:00",
 "published": "2026-11-22T04:40:49+00:00",
 "updated": "2026-11-21T09:03:04.530060+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-3694/",
  "https://plugins.svn.wordpress.org/contextual-related-posts/tags/4.5.7/",
  "https://wordpress.org/plugins/contextual-related-posts/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/contextual-related-posts",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-11-22"
 }
}