{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "5.8.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "a87b6f52efa0bf47f4925d52380e4f2d8346c003"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "5.8.0",
                "range": [
                  {
                    "fixed": "8bda2e7fe7d0e48f98b9d33d5e0b360fe9a5368d"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8bda2e7fe7d0e48f98b9d33d5e0b360fe9a5368d"
            },
            {
              "fixed": "a87b6f52efa0bf47f4925d52380e4f2d8346c003"
            }
          ],
          "repo": "https://github.com/vapor/jwt-kit",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-hfm2-66rr-3mcf"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-681"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142550.json"
  },
  "details": "JWTKit is a Swift library for signing and verifying JSON Web Tokens. Prior to 5.8.0, JWTKeyCollection.verify() in Sources/JWTKit/JWTKeyCollection.swift parses the JWT header using JWTParser.parseHeader() in Sources/JWTKit/JWTParser.swift before selecting a signer and verifying the signature. During parsing, JWTHeaderField.init(from:) in Sources/JWTKit/JWTHeaderField.swift decodes JSON numbers as Double and converts integral values to Int without checking the representable range. A remote unauthenticated attacker can provide an extremely large integral header value that triggers a Swift runtime trap and crashes the application without a valid signature or knowledge of the signing key. This issue is fixed in version 5.8.0.",
  "id": "CVE-2026-142550",
  "modified": "2026-12-02T21:45:57.477110014Z",
  "published": "2026-12-02T20:52:38.265Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142550.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vapor/jwt-kit/commit/a87b6f52efa0bf47f4925d52380e4f2d8346c003"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vapor/jwt-kit/releases/tag/5.8.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/vapor/jwt-kit/security/advisories/GHSA-hfm2-66rr-3mcf"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142550"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "JWTKit: Unauthenticated denial of service when parsing malicious JWT headers"
}