{"id":"CVE-2026-142550","summary":"JWTKit: Unauthenticated denial of service when parsing malicious JWT headers","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.","aliases":["GHSA-hfm2-66rr-3mcf"],"modified":"2026-12-02T22:00:12.004724584Z","published":"2026-12-02T20:52:38.265Z","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"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vapor/jwt-kit","events":[{"introduced":"0"},{"fixed":"8bda2e7fe7d0e48f98b9d33d5e0b360fe9a5368d"},{"fixed":"a87b6f52efa0bf47f4925d52380e4f2d8346c003"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"5.8.0"}]},{"range":[{"fixed":"a87b6f52efa0bf47f4925d52380e4f2d8346c003"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"5.8.0","range":[{"fixed":"8bda2e7fe7d0e48f98b9d33d5e0b360fe9a5368d"}]}]}}],"versions":["5.7.1","5.7.0","5.6.0","5.5.0","5.4.1","5.4.0","5.3.0","5.2.0","5.1.2","5.1.1","5.1.0","5.0.1","5.0.0","5.0.0-rc.2","5.0.0-rc.1","5.0.0-beta.4","5.0.0-beta.3","4.13.2","5.0.0-beta.2.1","5.0.0-beta.2","5.0.0-beta.1","4.13.1","4.13.0","4.12.0","4.11.1","4.11.0","4.10.0","4.9.0","4.8.0","4.7.0","4.6.1","4.6.0","4.5.0","4.4.0","4.3.0","4.2.6","4.2.5","4.2.4","4.2.3","4.2.2","4.2.1","4.2.0","4.1.0","4.0.1","4.0.0","4.0.0-rc.2.1","4.0.0-rc.2","4.0.0-rc.1.7","4.0.0-rc.1.6","4.0.0-rc.1.5","4.0.0-rc.1.4","4.0.0-rc.1.3","4.0.0-rc.1.2","4.0.0-rc.1.1","4.0.0-rc.1","4.0.0-beta.3.2","4.0.0-beta.3.1","4.0.0-beta.3","4.0.0-beta.2.5","4.0.0-beta.2.4","4.0.0-beta.2.3","4.0.0-beta.2.2","4.0.0-beta.2.1","4.0.0-beta.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142550.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}