CVE-2026-142551 — vapor jwt-kit
One of 3 vapor jwt-kit vulnerabilities published together by NVD: our article covers all of them.
MicrosoftIdentity & authVulnerabilitiesSummary
JWTKit is a Swift library for signing and verifying JSON Web Tokens. From 4.0.0 until 5.8.0, JWTSigner.verify() in Sources/JWTKit/JWTSigner.swift invokes payload verification after validating the JWS signature, but AppleIdentityToken, GoogleIdentityToken, and MicrosoftIdentityToken in Sources/JWTKit/Vendor/AppleIdentityToken.swift, Sources/JWTKit/Vendor/GoogleIdentityToken.swift, and Sources/JWTKit/Vendor/MicrosoftIdentityToken.swift do not validate the aud claim against the application's intended audience. An attacker can obtain a legitimate provider-issued ID token for an attacker-controlled OAuth or OIDC client and submit it to a different application using the same provider keys. If that application relies on the built-in verification as its authentication decision without a separate audience.verifyIntendedAudience(...) check, the token can be accepted despite being intended for another client. Depending on the application's identity mapping, the resulting cross-client token reuse can enable authentication bypass or account takeover. Applications that independently validate the intended audience are not affected through this issue. This issue is fixed in 5.8.0.
Severity breakdown
High · 8.1
An attacker without an account can exploit this over the network if a user is tricked into an action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- yes, someone must click, open or visit something
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality and integrity, none on availability
Weakness
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/vapor/jwt-kit (Swift) | ≥ 4.0.0, ≤ 5.7.1 | 5.8.0 |
| vapor jwt-kit | >= 4.0.0, < 5.8.0 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/vapor/jwt-kit/commit/a1551090db2a3bd86f0482622e2d201c199e75ad
- github.com/vapor/jwt-kit/releases/tag/5.8.0
Other references
Affected
- vapor jwt-kit
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-142551?
JWTKit is a Swift library for signing and verifying JSON Web Tokens. From 4.0.0 until 5.8.0, JWTSigner.verify() in Sources/JWTKit/JWTSigner.swift invokes payload verification after validating the JWS signature, but AppleIdentityToken, GoogleIdentityToken, and MicrosoftIdentityToken in Sources/JWTKit/Vendor/AppleIdentityToken.swift, Sources/JWTKit/Vendor/GoogleIdentityToken.swift, and… Weakness type: Improper Authentication (CWE-287).
How severe is CVE-2026-142551?
CVE-2026-142551 has a CVSS 3.1 base score of 8.1 (high), from the CNA (github.com). An attacker without an account can exploit this over the network if a user is tricked into an action.
Is CVE-2026-142551 being exploited?
Not as far as is known: CVE-2026-142551 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.4% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-142551?
github.com/vapor/jwt-kit (Swift) ≥ 4.0.0, ≤ 5.7.1 (fixed in 5.8.0); vapor jwt-kit >= 4.0.0, < 5.8.0.
How do I fix CVE-2026-142551?
Update to a fixed release: github.com/vapor/jwt-kit (Swift) 5.8.0.
Timeline & sources
References
Related vulnerabilities & news
- New Attack Technique Lets Attackers Decrypt AD RMS Documents Across Trusted Domains
- CVE-2026-137601 — Devolutions Server
- Windows Server LDAP Signing Bypass Vulnerability Lets Hackers Compromise Active Directory Domains
- Microsoft Overhauls Azure and Entra ID Bug Bounty Programs, Tops Out at $100,000
- Windows NTLM Security Update Causes Authentication Failures in Third-Party Apps and Devices