{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "14.1.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "af0ac3e4b9bd5fff55337aee32bf37f6116c7b4f"
            }
          ],
          "repo": "https://github.com/http-party/http-server",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-601"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142189.json"
  },
  "details": "http-server through 14.1.1 contains an open redirect vulnerability in lib/core/index.js that builds the 302 Location header from the raw request pathname plus a slash. Unauthenticated attackers can craft protocol-relative paths with encoded traversal sequences resolving to an existing subdirectory, redirecting victims to attacker-controlled sites.",
  "id": "CVE-2026-142189",
  "modified": "2026-12-02T23:45:51.423367799Z",
  "published": "2026-12-02T16:51:01.735Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142189.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/http-party/http-server"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/http-party/http-server/blob/v14.1.1/lib/core/index.js#L20-L35"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/http-party/http-server/blob/v14.1.1/lib/core/index.js#L381-L390"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/http-party/http-server/issues/982"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142189"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/http-server-through-14.1.1-open-redirect-via-directory-trailing-slash-redirect"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "http-server through 14.1.1 Open Redirect via Directory Trailing-Slash Redirect"
}