Description
jsonwebtoken is a JWT lib in rust. Prior to version 10.3.0, there is a Type Confusion vulnerability in jsonwebtoken, specifically, in its claim validation logic. When a standard claim (such as nbf or exp) is provided with an incorrect JSON type (Like a String instead of a Number), the library’s internal parsing mechanism marks the claim as “FailedToParse”. Crucially, the validation logic treats this “FailedToParse” state identically to “NotPresent”. This means that if a check is enabled (like: validate_nbf = true), but the claim is not explicitly marked as required in required_spec_claims, the library will skip the validation check entirely for the malformed claim, treating it as if it were not there. This allows attackers to bypass critical time-based security restrictions (like “Not Before” checks) and commit potential authentication and authorization bypasses. This issue has been patched in version 10.3.0.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Keats | jsonwebtoken | < 10.3.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-jsonwebtoken | No fix yet | — |
| Debian 13 | rust-jsonwebtoken | No fix yet | — |
| Debian 12 | rust-jsonwebtoken | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rust-jsonwebtoken | No fix yet | — |
| Ubuntu 26.04 LTS | rust-jsonwebtoken | No fix yet | — |
| Ubuntu 25.10 | rust-jsonwebtoken | No fix yet | — |
| Ubuntu 24.04 LTS | rust-jsonwebtoken | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | codex | 0.148.0-r1 | — |
| Wolfi rolling | lychee | 0.22.0-r4 | — |
| Wolfi rolling | py3.10-hf-xet +3 | 1.2.0-r5 | — |
| Wolfi rolling | qdrant | 1.16.3-r4 | — |
| Wolfi rolling | sccache | 0.18.0-r0 | — |
| Wolfi rolling | uv | 0.10.2-r1 | — |
| Wolfi rolling | wasmcloud | 2.0.1-r0 | — |
| Wolfi rolling | zed | 0.223.3-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | jsonwebtoken | < 10.3.0 | 10.3.0 | GHSA-h395-gr6q-cpjc |