{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "8.9.8"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "70b88f95311d88523cde6be1b1ec938aa48c24bc"
            },
            {
              "fixed": "f1e1c71b090d69ca0f0175ab73895da41db67a16"
            },
            {
              "fixed": "40f896e6f6c49a29b6ca3f559696dd786f40152d"
            }
          ],
          "repo": "https://github.com/notepad-plus-plus/notepad-plus-plus",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-h2wq-6x75-h8q2"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-121"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85279.json"
  },
  "details": "Notepad++ is a free and open-source source code editor. Prior to 8.9.8, Notepad++ contains a stack buffer overflow in PluginsManager::loadPluginFromPath in PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp because the plugin-supplied GetLexerCount() result controls a loop that writes to containers[30] without enforcing NB_MAX_EXTERNAL_LANG. A malicious or compromised plugin that reports more than 30 lexers can write beyond the stack array and corrupt control data, which can permit arbitrary code execution in the Notepad++ process context. This issue is fixed in version 8.9.8.",
  "id": "CVE-2026-85279",
  "modified": "2026-09-25T03:30:28.316381810Z",
  "published": "2026-09-22T17:08:42.474Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.8"
    },
    {
      "type": "WEB",
      "url": "https://notepad-plus-plus.org/news/v898-released"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85279.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-h2wq-6x75-h8q2"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-85279"
    },
    {
      "type": "FIX",
      "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/70b88f95311d88523cde6be1b1ec938aa48c24bc"
    },
    {
      "type": "FIX",
      "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/f1e1c71b090d69ca0f0175ab73895da41db67a16"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Notepad++: Stack Buffer Overflow in Plugin Lexer Loading via Unchecked GetLexerCount() Return Value"
}