CVE-2026-142550

Source
https://cve.org/CVERecord?id=CVE-2026-142550
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142550.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142550
Aliases
Published
2026-12-02T20:52:38Z
Modified
2026-12-02T22:00:12Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

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

Affected packages

Git / github.com/vapor/jwt-kit

Affected ranges

Type
GIT
Repo
https://github.com/vapor/jwt-kit
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "5.8.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "a87b6f52efa0bf47f4925d52380e4f2d8346c003"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "5.8.0",
            "range":  [
                {
                    "fixed":  "8bda2e7fe7d0e48f98b9d33d5e0b360fe9a5368d"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

4.*
4.0.0
4.0.0-beta.2
4.0.0-beta.2.1
4.0.0-beta.2.2
4.0.0-beta.2.3
4.0.0-beta.2.4
4.0.0-beta.2.5
4.0.0-beta.3
4.0.0-beta.3.1
4.0.0-beta.3.2
4.0.0-rc.1
4.0.0-rc.1.1
4.0.0-rc.1.2
4.0.0-rc.1.3
4.0.0-rc.1.4
4.0.0-rc.1.5
4.0.0-rc.1.6
4.0.0-rc.1.7
4.0.0-rc.2
4.0.0-rc.2.1
4.0.1
4.1.0
4.10.0
4.11.0
4.11.1
4.12.0
4.13.0
4.13.1
4.13.2
4.2.0
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.3.0
4.4.0
4.5.0
4.6.0
4.6.1
4.7.0
4.8.0
4.9.0
5.*
5.0.0
5.0.0-beta.1
5.0.0-beta.2
5.0.0-beta.2.1
5.0.0-beta.3
5.0.0-beta.4
5.0.0-rc.1
5.0.0-rc.2
5.0.1
5.1.0
5.1.1
5.1.2
5.2.0
5.3.0
5.4.0
5.4.1
5.5.0
5.6.0
5.7.0
5.7.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142550.json"