CVE-2026-142550
HIGH 7.5CVSS 3.1JWTKit: Unauthenticated denial of service when parsing malicious JWT headers
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.
- Published
- 2 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-681
- Also known as
- GHSA-hfm2-66rr-3mcf
- Sources
- NVDJSONCVE ListJSONOSV GHSA-hfm2-66rr-3mcfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CVE List | GitHub_M | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | vapor | jwt-kit | = < 5.8.0 | |
| OSV | SwiftURL | github.com/vapor/jwt-kit | < 5.8.0 | 5.8.0 |
References
- https://github.com/vapor/jwt-kit/commit/a87b6f52efa0bf47f4925d52380e4f2d8346c003 · x_refsource_MISC, WEB
- https://github.com/vapor/jwt-kit/releases/tag/5.8.0 · x_refsource_MISC, WEB
- https://github.com/vapor/jwt-kit/security/advisories/GHSA-hfm2-66rr-3mcf · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-142550 · ADVISORY
- https://github.com/vapor/jwt-kit · PACKAGE
History
- 3 Dec 2026 15:56 UTC · CVE List: updated (other details)
- 3 Dec 2026 15:56 UTC · NVD: updated (other details)
- 2 Dec 2026 22:21 UTC · OSV: first stored (published 2 Dec 2026)
- 2 Dec 2026 21:25 UTC · NVD: first stored (published 2 Dec 2026)
- 2 Dec 2026 21:00 UTC · CVE List: first stored (published 2 Dec 2026)