CVE Professor
/
All CVEs
CVE-2026-142549

CVE-2026-142549 — Github.com/vapor/jwt-kit — CWE-345

MEDIUM CVSS 4.9 ⚡ EPSS 0.2% GitHub

### Summary X5CVerifier.verifyJWS() decodes ValidationTimePayload.signedDate before verifying the JWS signature and uses it as fixedExpiryValidationTime during X.509 certificate validation. Since signedDate originates from an unauthenticated payload, an attacker can backdate certificate validation and bypass certificate expiration if they possess the private key of an expired, previously trusted certificate. ### Details Affected Code * Sources/JWTKit/X5C/X5CVerifier.swift (certificate validation order) * Sources/JWTKit/X5C/ValidationTimePayload.swift The verification flow is: 1. Parse JWT 2. Decode payload 3. Read signedDate 4. Validate X.509 chain using signedDate 5. Verify JWS signature This allows untrusted input to influence a security decision before authentication. ### PoC Certificate: ``` Not After: 2025-01-01 Current date: 2026-06-01 ``` JWT payload: ``` { "sub": "attacker", "signedDate": "2024-06-01T12:00:00Z" } ``` The token is signed today using the expired private key. During verification: ``` date = payload.signedDate RFC5280Policy( fixedExpiryValidationTime: date ) ``` The certificate chain is validated against 2024-06-01 instead of the current time, succeeds, and the newly created JWT is accepted. ### Impact An attacker with the private key of an expired certificate can generate new JWTs that are accepted by setting signedDate to a time when the certificate was still valid, effectively bypassing certificate expiration. ### Recommendation Do no

### Summary X5CVerifier.verifyJWS() decodes ValidationTimePayload.signedDate before verifying the JWS signature and uses it as fixedExpiryValidationTime during X.509 certificate validation. Since signedDate originates from an unauthenticated payload, an attacker can backdate certificate validation and bypass certificate expiration if they possess the private key of an expired, previously trusted certificate. ### Details Affected Code * Sources/JWTKit/X5C/X5CVerifier.swift (certificate validation order) * Sources/JWTKit/X5C/ValidationTimePayload.swift The verification flow is: 1. Parse JWT 2. Decode payload 3. Read signedDate 4. Validate X.509 chain using signedDate 5. Verify JWS signature This allows untrusted input to influence a security decision before authentication. ### PoC Certificate: ``` Not After: 2025-01-01 Current date: 2026-06-01 ``` JWT payload: ``` { "sub": "attacker", "signedDate": "2024-06-01T12:00:00Z" } ``` The token is signed today using the expired private key. During verification: ``` date = payload.signedDate RFC5280Policy( fixedExpiryValidationTime: date ) ``` The certificate chain is validated against 2024-06-01 instead of the current time, succeeds, and the newly created JWT is accepted. ### Impact An attacker with the private key of an expired certificate can generate new JWTs that are accepted by setting signedDate to a time when the certificate was still valid, effectively bypassing certificate expiration. ### Recommendation Do no

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. High PR:H
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity High I:H
Availability None A:N
EPSS — Exploit Prediction Scoring System
0.2%
30-day probability
In the 14. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-142549
CVSS 4.9/10 · MEDIUM · 02.12.2026
CWE: CWE-345
Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ### Summary
X5CVerifier.verifyJWS() decodes ValidationTimePayload.signedDate before verifying the JWS signature and uses it as fixedExpiryValidationTime during X.509 certificate validation. Since signedDate originates from an unauthenticated payload, an attacker can backdate certificate validation and bypass certificate expiration if they possess the private key of an expired, previously trust…
Affected: github.com/vapor/jwt-kit

⚡ ATTACK VECTOR
Network / Remote (AV:N) · privileged account (PR:H) · no user interaction (UI:N) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); data can be modified or deleted.

🛡️ REMEDIATION
→ Apply vendor security update for github.com/vapor/jwt-kit.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📋 Routine update cycle (30 days)

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
4.9 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-345
Affected Products (1)
github.com/vapor/jwt-kit
References & Advisories (4)
Related CVEs
9.4
CVE-2026-68548
## Summary Algernon's URL-prefix authorization gate matches its protected prefixes (`/admin`, `/repo`, `/data`
8.2
CVE-2026-145366
### Summary A URI SAN is a context-specific, primitive GeneralName with tag number 6 (identifier octet `0x86`
7.7
CVE-2026-145367
### Summary In ambient mode, `istiod` does not correctly convert the `trustDomains` and `notTrustDomains` sou
5.6
CVE-2026-145239
### Summary `AuthorizationPolicy` `source.ipBlocks`, `source.notIpBlocks` and the `source.ip` condition on am
8.8
CVE-2026-77471
shell-chain is a PQVM-native, post-quantum blockchain. Prior to version 0.27.1, the finality vote aggregation
8.7
CVE-2026-130019
When a table is loaded or committed, Polaris read the table metadata file from the table's own storage and use
8.1
CVE-2026-77456
OpenID4VP is an open-source credential parsing library for SD-JWT VC and mDOC/mDL formats. Prior to version 0.