{"affected":[{"product":"jwt-kit","source":"CNA: GitHub_M","vendor":"vapor","versions":[{"status":"affected","version":"< 5.8.0"}]}],"cveId":"CVE-2026-142550","cwes":["CWE-681"],"description":"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":7.5,"severity":"high","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}],"modifiedAt":1796244758265,"publishedAt":1796244758265,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/vapor/jwt-kit/security/advisories/GHSA-hfm2-66rr-3mcf"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/vapor/jwt-kit/commit/a87b6f52efa0bf47f4925d52380e4f2d8346c003"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/vapor/jwt-kit/releases/tag/5.8.0"}],"remediation":[],"revision":"e9556957fc6d76ecb055d1dcf649ed88d9809ce1cce8ec785f271c1642ca396c","sources":[{"modifiedAt":1796244758265,"name":"CNA: GitHub_M","retrievedAt":1796245785103,"url":"https://www.cve.org/CVERecord?id=CVE-2026-142550"}],"ssvc":null,"status":"published","title":"JWTKit: Unauthenticated denial of service when parsing malicious JWT headers","updatedAt":1796245785103}