Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Microsoft

CVE-2026-142551 — vapor jwt-kit

High · CVSS 8.1EPSS 0.4% First seen December 02, 2026

One of 3 vapor jwt-kit vulnerabilities published together by NVD: our article covers all of them.

MicrosoftIdentity & authVulnerabilities

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 8.1 CVSS 3.1 base score from the CNA (github.com)

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

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Weakness

  • CWE-287: Improper Authentication
  • CWE-345: Insufficient Verification of Data Authenticity

Affected and fixed versions

ProductAffected versionsFixed in
github.com/vapor/jwt-kit (Swift)≥ 4.0.0, ≤ 5.7.15.8.0
vapor jwt-kit>= 4.0.0, < 5.8.0—

From the GitHub Advisory Database and the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain), the GitHub Advisory Database (CC BY 4.0).

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