MEDIUMCVSS v3.1 4.9Vulnerability

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 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 not derive X.509 validation time from unauthenticated JWT payloads. Validate the certificate chain using the current time (or another trusted source), and only trust signedDate after successful JWS verification.

Properties

Severity
medium
Summary
JWTKit: X.509 validation time controlled by unauthenticated JWT payload (certificate expiration bypass)
Nvd fetched at
2026-12-04T15:00:48.841578+00:00
Epss score
0.00224
Cvss severity
MEDIUM
Cvss score
4.9
Retrieved at
2026-12-04T15:02:58+00:00
Ghsa published
2026-12-02T22:05:14Z
Source url
https://github.com/advisories/GHSA-pfgx-7g34-46fm
Ghsa updated
2026-12-02T22:05:15Z
Ghsa id
GHSA-pfgx-7g34-46fm
Last source
FIRST EPSS
Score
4.9
Cvss version
3.1
Cve id
CVE-2026-142549
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
First seen by Signal
2026-12-02T22:45:38+00:00
Name
CVE-2026-142549
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N

Related Entities (3)

AFFECTS (1)

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-142549 (CVSS v3.1 4.9) — Ninja Signal Threat Intelligence | Ninja Signal