{
 "id": "WPSEC-2026-4416",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4416/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4416/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4416/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4416.json",
 "title": "Custom Related Posts <= 1.8.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Related Post Titles and Permalinks",
 "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.",
 "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": 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": null,
    "from_inclusive": true,
    "to": "1.8.3",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 1.8.3"
  ]
 },
 "introduced_in": null,
 "fixed_in": "1.8.3",
 "remediation": "Update to 1.8.3 or later.",
 "fix_released": "2026-12-01T10:59:00+00:00",
 "published": "2026-12-03T12:50:55+00:00",
 "updated": "2026-12-03T12:16:33.492360+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4416/",
  "https://plugins.svn.wordpress.org/custom-related-posts/tags/1.8.3/",
  "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": "Medium",
  "as_of": "2026-12-03"
 }
}