Security mailing lists by PureSourceCode

CVE-2026-142550

HIGH 7.5CVSS 3.1

JWTKit: 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List vapor jwt-kit = < 5.8.0
OSV SwiftURL github.com/vapor/jwt-kit < 5.8.0 5.8.0

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.