Home › CVE › Vulnerabilities
CVE-2026-142549 — vapor jwt-kit
One of 3 vapor jwt-kit vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesResearch article
JWTKit Vulnerability Enables Exploitation of Expired Certificates
| CVE | CVE-2026-142549 |
|---|---|
| Vendor and product | vapor jwt-kit |
| Published | December 03, 2026 22:05 UTC |
| Research cut-off | December 03, 2026 21:50 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-12-03); CISA KEV catalog; GitHub advisory (2026-12-02); FIRST EPSS (2026-12-03) |
Executive summary
letting someone who holds the signing secret for a certificate that has lapsed but was once trusted get freshly issued tokens approved even though the expiry date has passed, carrying a CVSS 3.1 rating of 4.9 MEDIUM [1] The vulnerability impacts versions prior to 5.8.0 [3]. The reviewed sources do not report evidence of exploitation [2]. The main recommendation is to upgrade to the fixed version 5.8.0 [1].
Key points
- CVE-2026-142549 affects the JWTKit library, allowing attackers to bypass certificate expiration checks [1].
- letting someone who holds the signing secret for a certificate that has lapsed but was once trusted get freshly issued tokens approved even though the expiry date has passed, carrying a CVSS 3.1 rating of 4.9 MEDIUM [1]
- The reviewed sources do not report evidence of exploitation [2].
- The vulnerability impacts versions prior to 5.8.0 [3].
- The main recommendation is to upgrade to the fixed version 5.8.0 [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published Date | Last Modified Date | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-142549 | vapor | jwt-kit | CWE-345 | 4.9 MEDIUM | 2026-12-02T21:18:16 | 2026-12-03T17:18:04 | Received |
Vulnerability description
JWTKit, a Swift package used to create and check JSON Web Tokens, takes a timestamp out of the token body before checking the signature and treats it as the validation time for certificate checks [1]. This could result in newly signed tokens being accepted even if the certificate has expired [1].
Attack surface and exploitation prerequisites
The CVSS vector indicates the vulnerability requires high privileges [1]. To exploit this vulnerability, the attacker needs access to the private key from an expired certificate that was once considered trustworthy [1]. No user interaction is required [1].
Impact analysis
The CVSS vector shows that this vulnerability has a high impact on data integrity [1]. There is no impact on confidentiality or availability [1].
Affected products and versions
| Affected Product | Fixed Version |
|---|---|
| vapor jwt-kit | 5.8.0 |
Exploitation and threat intelligence status
CVE-2026-142549 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-12-03 [2]. The estimated probability of exploitation within the next 30 days is 0.22% [4].
Detection and exposure assessment
To determine if an organization is exposed, check if the installed version of vapor jwt-kit is below 5.8.0 [1].
Remediation
The vulnerability is resolved in version 5.8.0 [1]. Users should update to this version to reduce the risk [1].
Remediation checklist
Evidence gaps
- The sources do not describe the internal workings of the affected component.
- The sources do not mention any alternative solutions.
- The sources do not provide a detailed scenario for exploitation.
- The sources do not include indicators of compromise.
- The sources do not elaborate on the technical mechanics of the flaw.
- The sources do not explain the root cause beyond the CWE.
References
- CVE-2026-142549 record. NIST National Vulnerability Database (NVD), 2026-12-03. https://nvd.nist.gov/vuln/detail/CVE-2026-142549. Accessed 2026-12-03.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-03. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-03.
- GHSA-pfgx-7g34-46fm. GitHub Security Advisory Database, 2026-12-02. https://github.com/advisories/GHSA-pfgx-7g34-46fm. Accessed 2026-12-03.
- EPSS score for CVE-2026-142549. FIRST, 2026-12-03. https://api.first.org/data/v1/epss?cve=CVE-2026-142549. Accessed 2026-12-03.
Summary
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.
Severity breakdown
Medium · 4.9
An attacker with administrator rights can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- yes, an administrator account
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on integrity, none on confidentiality and availability
Weakness
- CWE-345: Insufficient Verification of Data Authenticity
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/vapor/jwt-kit (Swift) | ≤ 5.7.1 | 5.8.0 |
| vapor jwt-kit | < 5.8.0 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/vapor/jwt-kit/commit/8229a0aff8e60ab89f40839db4ea3e847a79bfa5
- github.com/vapor/jwt-kit/releases/tag/5.8.0
Other references
Affected
- vapor jwt-kit
Frequently asked questions
What is CVE-2026-142549?
letting someone who holds the signing secret for a certificate that has lapsed but was once trusted get freshly issued tokens approved even though the expiry date has passed, carrying a CVSS 3.1 rating of 4.9 MEDIUM The vulnerability impacts versions prior to 5.8.0. The reviewed sources do not report evidence of exploitation. The main recommendation is to upgrade to the fixed version 5.8.0. Weakness type: Insufficient Verification of Data Authenticity (CWE-345).
How severe is CVE-2026-142549?
CVE-2026-142549 has a CVSS 3.1 base score of 4.9 (medium), from the CNA (github.com). An attacker with administrator rights can exploit this over the network, without any user action.
Is CVE-2026-142549 being exploited?
Not as far as is known: CVE-2026-142549 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-142549?
github.com/vapor/jwt-kit (Swift) ≤ 5.7.1 (fixed in 5.8.0); vapor jwt-kit < 5.8.0.
How do I fix CVE-2026-142549?
Upgrade vapor jwt-kit to version 5.8.0 to address the vulnerability. Verify the installed version of JWTKit to ensure it is not below 5.8.0. Monitoring for signs of certificate misuse or unauthorized token validation is general guidance, not from the NVD record.