本文へ移動
English version →
中 4.9

JWTKit: X.509 validation time controlled by unauthenticated JWT payload (certificate expiration bypass)

CVE-2026-142549 SecPulse初出

影響パッケージ

パッケージ影響を受ける版 → 修正版
vaporjwt-kit —
SwiftURLgithub.com/vapor/jwt-kit
5.8.0 未満→ 5.8.0
swiftgithub.com/vapor/jwt-kit
5.8.0 未満→ 5.8.0
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

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…

出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく