{
 "id": "WPSEC-2026-2643",
 "url": "https://wpsec.com/vuln/WPSEC-2026-2643/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-2643/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-2643/index.md",
 "title": "Code Snippets <= 4.0.0 - Authenticated (Contributor+) Sensitive Information Exposure via Snippet Source Shortcodes",
 "description": "The Code Snippets plugin for WordPress is vulnerable to Sensitive Information Exposure via the [code_snippet_source] and [code_snippet] shortcodes in all versions up to, and including, 4.0.0, due to the shortcodes rendering the source code of any snippet by ID without checking whether the author of the post is allowed to manage snippets. This makes it possible for authenticated attackers with contributor-level access and above to read the source code of any site or network snippet, which may contain sensitive data such as credentials or API keys.",
 "plugin": {
  "slug": "code-snippets",
  "name": "Code Snippets",
  "full_name": "Code Snippets",
  "wordpress_org": "https://wordpress.org/plugins/code-snippets/",
  "advisories_url": "https://wpsec.com/vuln/plugin/code-snippets/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/code-snippets"
 },
 "type": "SENSITIVE DATA DISCLOSURE",
 "cwe": [
  "CWE-200"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.3,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "2.6.0",
    "from_inclusive": true,
    "to": "4.1.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 2.6.0 before 4.1.0"
  ]
 },
 "introduced_in": "2.6.0",
 "fixed_in": "4.1.0",
 "remediation": "Update to 4.1.0 or later.",
 "fix_released": "2026-11-05T05:28:59+00:00",
 "published": "2026-11-06T12:43:54+00:00",
 "updated": "2026-11-06T11:59:22.140809+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-2643/",
  "https://plugins.svn.wordpress.org/code-snippets/tags/4.1.0/",
  "https://wordpress.org/plugins/code-snippets/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/code-snippets",
 "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-06"
 }
}