{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "0.24.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "75f3622a8767a3fd8ac9f171ce3c131cc2e7a18e"
            }
          ],
          "repo": "https://github.com/azukaar/cosmos-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-142301.json"
  },
  "details": "Cosmos Server through 0.24.1 contains an open redirect vulnerability in detectCallbackEndpoint that allows unauthenticated attackers to redirect users by supplying backslash-prefixed paths on auth-protected routes. Attackers can send links like /%5Cevil.example/ that, after OpenID login, produce a protocol-relative Location header redirecting victims to attacker-controlled phishing sites.",
  "id": "CVE-2026-142301",
  "modified": "2026-12-02T20:45:35.841765556Z",
  "published": "2026-12-02T16:48:52.848Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142301.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/azukaar/Cosmos-Server"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/azukaar/Cosmos-Server/blob/v0.24.1/src/authorizationserver/oauth2.go#L227-L245"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/azukaar/Cosmos-Server/blob/v0.24.1/src/authorizationserver/oauth2.go#L378-L382"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/azukaar/Cosmos-Server/blob/v0.24.1/src/proxy/app_gate.go#L14-L21"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142301"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/cosmos-server-through-0.24.1-open-redirect-via-backslash-path-after-openid-login"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Cosmos Server through 0.24.1 Open Redirect via Backslash Path After OpenID Login"
}