{
  "id": "CVE-2026-86054",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-86054",
  "published_at": "2026-09-22T17:12:38.351Z",
  "title": "Notepad++: Stack Buffer Overflow in `NppParameters::writeSession` via overlong session path",
  "vendor": "notepad-plus-plus",
  "product": "notepad-plus-plus",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-121",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "notepad-plus-plus",
        "product": "notepad-plus-plus",
        "ranges": [
          "\u003c 8.9.8"
        ],
        "fixed_in": [
          "8.9.8"
        ]
      }
    ],
    "upgrade": [
      "Upgrade notepad-plus-plus to 8.9.8 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-pxgg-96p2-c3hx"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/046af3f626be7715886412313fc18f58b30dfcaf"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.8"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
