CVE Professor
/
All CVEs
CVE-2026-142551

CVE-2026-142551 — Github.com/vapor/jwt-kit — CWE-287 · CWE-345

HIGH CVSS 8.1 ⚡ EPSS 0.4% GitHub

### Summary `AppleIdentityToken`, `GoogleIdentityToken`, and `MicrosoftIdentityToken` validate a signed ID token's issuer and expiry, but do not validate that the `aud` claim is intended for the current application. This allows cross-client ID token reuse when an application relies on JWTKit's built-in vendor token verification as complete authentication. An attacker can obtain a legitimate Apple/Google/Microsoft ID token for an attacker-controlled OAuth/OIDC client and submit it to a different application using the same provider keys. JWTKit accepts the token even though its `aud` identifies the attacker's client, not the victim application. The exact account-level impact depends on how the application maps provider identities, but the security boundary is already broken once a token issued for another relying party is accepted as a verified login token. ### Details `JWTSigner.verify()` verifies the JWS signature and then automatically calls the payload's `verify(using:)` method: - `Sources/JWTKit/JWTSigner.swift:33-39` ```swift guard try algorithm.verify(signature, signs: data) else { throw JWTError.signatureVerificationFailed } let (_, payload, _) = try parser.parse(token, as: Payload.self) try await payload.verify(using: algorithm) ``` For the vendor ID token payload types, `verify(using:)` does not check `audience`: - `Sources/JWTKit/Vendor/AppleIdentityToken.swift:85-90` checks only `iss` and `exp` - `Sources/JWTKit/Vendor/GoogleIdentityToken.swift:139-148

### Summary `AppleIdentityToken`, `GoogleIdentityToken`, and `MicrosoftIdentityToken` validate a signed ID token's issuer and expiry, but do not validate that the `aud` claim is intended for the current application. This allows cross-client ID token reuse when an application relies on JWTKit's built-in vendor token verification as complete authentication. An attacker can obtain a legitimate Apple/Google/Microsoft ID token for an attacker-controlled OAuth/OIDC client and submit it to a different application using the same provider keys. JWTKit accepts the token even though its `aud` identifies the attacker's client, not the victim application. The exact account-level impact depends on how the application maps provider identities, but the security boundary is already broken once a token issued for another relying party is accepted as a verified login token. ### Details `JWTSigner.verify()` verifies the JWS signature and then automatically calls the payload's `verify(using:)` method: - `Sources/JWTKit/JWTSigner.swift:33-39` ```swift guard try algorithm.verify(signature, signs: data) else { throw JWTError.signatureVerificationFailed } let (_, payload, _) = try parser.parse(token, as: Payload.self) try await payload.verify(using: algorithm) ``` For the vendor ID token payload types, `verify(using:)` does not check `audience`: - `Sources/JWTKit/Vendor/AppleIdentityToken.swift:85-90` checks only `iss` and `exp` - `Sources/JWTKit/Vendor/GoogleIdentityToken.swift:139-148

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

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-142551
CVSS 8.1/10 · HIGH · 02.12.2026
CWE: CWE-287, CWE-345
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Authentication Bypass
Summary: ### Summary

AppleIdentityToken, GoogleIdentityToken, and MicrosoftIdentityToken validate a signed ID token's issuer and expiry, but do not validate that the aud claim is intended for the current application. This allows cross-client ID token reuse when an application relies on JWTKit's built-in vendor token verification as complete authentication. An attacker can obtain a legitimate Ap…
Affected: github.com/vapor/jwt-kit

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · user interaction required (UI:R) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; data can be modified or deleted.

🛡️ REMEDIATION
→ Apply vendor security update for github.com/vapor/jwt-kit.
→ Add MFA, strengthen sessions, implement rate limiting.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

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

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
8.1 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-287 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
9.8
CVE-2026-145051
WWBN AVideo before 29.9.0 contains an authentication bypass vulnerability in the LoginWordPress plugin that al
9.3
CVE-2026-47677
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.3, there is an authe
8.8
CVE-2026-77471
shell-chain is a PQVM-native, post-quantum blockchain. Prior to version 0.27.1, the finality vote aggregation