{
 "id": "WPSEC-2026-4588",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4588/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4588/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4588/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4588.json",
 "title": "Custom Related Posts <= 1.8.3 - Authenticated (Administrator+) Stored Cross-Site Scripting via Custom Layout Template",
 "description": "The Custom Related Posts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the custom layout template in versions 1.8.0 up to, and including, 1.8.3. The template is filtered with wp_kses_post() when it is saved, but it is then split into lines and each line is output separately, so a tag or attribute value spanning several lines passes the filter as harmless text and becomes markup after the split. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts in pages that display related posts. This only affects multi-site installations and installations where unfiltered_html has been disabled.",
 "plugin": {
  "slug": "custom-related-posts",
  "name": "Custom Related Posts",
  "full_name": "Custom Related Posts",
  "wordpress_org": "https://wordpress.org/plugins/custom-related-posts/",
  "advisories_url": "https://wpsec.com/vuln/plugin/custom-related-posts/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/custom-related-posts"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.4,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.8.0",
    "from_inclusive": true,
    "to": "1.8.4",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.8.0 before 1.8.4"
  ]
 },
 "introduced_in": "1.8.0",
 "fixed_in": "1.8.4",
 "remediation": "Update to 1.8.4 or later.",
 "fix_released": "2026-12-03T09:05:50+00:00",
 "published": "2026-12-04T09:47:12+00:00",
 "updated": "2026-12-03T12:34:05.479732+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4588/",
  "https://plugins.svn.wordpress.org/custom-related-posts/tags/1.8.4/",
  "https://wordpress.org/plugins/custom-related-posts/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/custom-related-posts",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Low",
  "as_of": "2026-12-04"
 }
}