CVE-2026-142549

Source
https://cve.org/CVERecord?id=CVE-2026-142549
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142549.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142549
Aliases
Published
2026-12-02T20:47:46Z
Modified
2026-12-02T22:00:12Z
Severity
  • 4.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
JWTKit: X.509 validation time controlled by unauthenticated JWT payload (certificate expiration bypass)
Details

JWTKit is a Swift library for signing and verifying JSON Web Tokens. Prior to 5.8.0, X5CVerifier.verifyJWS() in Sources/JWTKit/X5C/X5CVerifier.swift reads ValidationTimePayload.signedDate, defined in Sources/JWTKit/X5C/ValidationTimePayload.swift, from the token payload before verifying the JWS signature. The verifier uses that unauthenticated date as fixedExpiryValidationTime for X.509 certificate validation. An attacker possessing the private key of an expired, previously trusted certificate can backdate the value and cause newly signed tokens to be accepted despite certificate expiration. This issue is fixed in version 5.8.0.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-345"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142549.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":  "8229a0aff8e60ab89f40839db4ea3e847a79bfa5"
                }
            ],
            "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-142549.json"