{
  "id": "CVE-2026-28807",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-28807",
  "published_at": "2026-03-10T21:34:47.859Z",
  "title": "Path Traversal in wisp.serve_static allows arbitrary file read",
  "vendor": "gleam-wisp",
  "product": "wisp",
  "cvss": {
    "score": 8.7,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  },
  "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": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in gleam-wisp wisp allows arbitrary file read via percent-encoded path traversal.\n\nThe wisp.serve_static function is vulnerable to path traversal because sanitization runs before percent-decoding. The encoded sequence %2e%2e passes through string.replace unchanged, then uri.percent_decode converts it to .., which the OS resolves as directory traversal when the file is read.\n\nAn unauthenticated attacker can read any file readable by the application process in a single HTTP request, including application source code, configuration files, secrets, and system files.\n\nThis issue affects wisp: from 2.1.1 before 2.2.1.",
  "cwe": "CWE-22",
  "cpes": [
    "cpe:2.3:a:gleam-wisp:wisp:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.7,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "gleam-wisp",
        "product": "wisp",
        "ranges": [
          "\u003e= 2.1.1, \u003c 2.2.1"
        ],
        "fixed_in": [
          "2.2.1"
        ]
      },
      {
        "vendor": "gleam-wisp",
        "product": "wisp",
        "ranges": [
          "\u003e= 129dcb1fe10ab1e676145d91477535e1c90ab550, \u003c *"
        ],
        "fixed_in": [
          "*",
          "161118c431047f7ef1ff7cabfcc38981877fdd93",
          "987d3641fa038f749f68621a87b5e9a42ee9ef83"
        ]
      }
    ],
    "upgrade": [
      "Upgrade wisp to 2.2.1 or later.",
      "Upgrade wisp to * or 161118c431047f7ef1ff7cabfcc38981877fdd93 or 987d3641fa038f749f68621a87b5e9a42ee9ef83 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/gleam-wisp/wisp/commit/129dcb1fe10ab1e676145d91477535e1c90ab550"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/gleam-wisp/wisp/commit/987d3641fa038f749f68621a87b5e9a42ee9ef83"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r",
      "source": "nvd",
      "title": "",
      "published_at": null,
      "first_seen_at": "2026-11-20T05:00:05.285Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
