JWTKit: X.509 validation time controlled by unauthenticated JWT payload (certificate expiration bypass)
CVE-2026-142549
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…
Assessment
- CVSS
- 4.9 (v3.1)
- Severity
- Medium
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 2 December 2026
- Last updated
- 2 December 2026
- Affected
- vapor · jwt-kit · github.com/vapor/jwt-kit
- Weakness
- CWE-345
- Assigner
- security-advisories@github.com
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
At the source
References
- https://github.com/vapor/jwt-kit/security/advisories/GHSA-pfgx-7g34-46fm
- https://nvd.nist.gov/vuln/detail/CVE-2026-142549
- https://github.com/vapor/jwt-kit/commit/8229a0aff8e60ab89f40839db4ea3e847a79bfa5
- https://github.com/vapor/jwt-kit/releases/tag/5.8.0
- https://github.com/advisories/GHSA-pfgx-7g34-46fm
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-142549