{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "8.9.8"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "046af3f626be7715886412313fc18f58b30dfcaf"
            },
            {
              "fixed": "40f896e6f6c49a29b6ca3f559696dd786f40152d"
            }
          ],
          "repo": "https://github.com/notepad-plus-plus/notepad-plus-plus",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-pxgg-96p2-c3hx"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-121"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/86xxx/CVE-2026-86054.json"
  },
  "details": "Notepad++ is a free and open-source source code editor. Prior to 8.9.8, Notepad++ contains a stack buffer overflow in NppParameters::writeSession in PowerEditor/src/Parameters.cpp because it copies a session path derived from -settingsDir= into backupPathName[MAX_PATH] with unbounded wcscpy and appends SESSION_BACKUP_EXT with unbounded wcscat. A sufficiently long settings directory causes the backup suffix to exceed the fixed stack buffer when Notepad++ saves the session, and the protected release build terminates through its stack canary, causing denial of service. This issue is fixed in version 8.9.8.",
  "id": "CVE-2026-86054",
  "modified": "2026-09-25T03:30:30.120459242Z",
  "published": "2026-09-22T17:12:38.351Z",
  "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/86xxx/CVE-2026-86054.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-pxgg-96p2-c3hx"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-86054"
    },
    {
      "type": "FIX",
      "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/046af3f626be7715886412313fc18f58b30dfcaf"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Notepad++: Stack Buffer Overflow in `NppParameters::writeSession` via overlong session path"
}