CVE-2026-142550: Vulnerability in Vapor Jwt-kit

Patch soon. 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...

Swift, CWE-681

Exploitation
None confirmed
Severity
7.5 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-hfm2-66rr-3mcf
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-681
Published
2 Dec 2026
Last change
3 Dec 2026
Ecosystem
Swift

Affected products

Affected versions and the first fixed release

  • Vapor Jwt-kit Before 5.8.0; Version < 5.8.0. Fixed in 5.8.0

Affected packages

Vulnerable version ranges and fixed releases

  • github.com/vapor/jwt-kit Swift, Affected through 5.7.1. Fixed in 5.8.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related