CVE-2026-142549
MEDIUM 4.9CVSS 3.1JWTKit: X.509 validation time controlled by unauthenticated JWT payload (certificate expiration bypass)
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.
- Published
- 2 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-345
- Also known as
- GHSA-pfgx-7g34-46fm
- Sources
- NVDJSONCVE ListJSONOSV GHSA-pfgx-7g34-46fmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N |
| CVE List | GitHub_M | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N |
| 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/8229a0aff8e60ab89f40839db4ea3e847a79bfa5 · 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-pfgx-7g34-46fm · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-142549 · ADVISORY
- https://github.com/vapor/jwt-kit · PACKAGE
History
- 3 Dec 2026 17:56 UTC · NVD: updated (other details)
- 3 Dec 2026 16:56 UTC · CVE List: 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)