# CVE-2026-137563: web-token jwt-framework 4.2.1 before 4.2.6 Key Exposure via JWE Exception Traces


- **Severity:** Medium 5.9 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 26 Nov 2026
- **Updated:** 26 Nov 2026
- **Also known as:** GHSA-7hp7-mg7x-hww4, GHSA-jc4q-v6cx-v9hm

## What is CVE-2026-137563?

CVE-2026-137563 is a medium-severity vulnerability in web-token jwt-experimental, published on 26 Nov 2026. 

### Official description

web-token jwt-framework from 4.2.1 before 4.2.6 contains an information disclosure vulnerability that exposes decryption keys in exception stack traces when JWE tokens are rejected. Attackers can submit crafted JWE tokens so JWELoader and JWEDecrypter record dir, AES key wrapping, PBES2-derived or content encryption keys in logged trace arguments readable by others.

Weakness: CWE-209 (Generation of Error Message Containing Sensitive Information)

## Which versions are affected by CVE-2026-137563?

3 open source packages ship an affected version, including web-token/jwt-experimental, web-token/jwt-framework and web-token/jwt-library.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `web-token/jwt-experimental` | Packagist | `pkg:composer/web-token/jwt-experimental` | From 4.2.1 | 4.2.6 |
| `web-token/jwt-framework` | Packagist | `pkg:composer/web-token/jwt-framework` | From 4.2.1 | 4.2.6 |
| `web-token/jwt-library` | Packagist | `pkg:composer/web-token/jwt-library` | From 4.2.1 | 4.2.6 |

## How do I fix CVE-2026-137563?

Upgrade web-token/jwt-experimental to 4.2.6 or later.

## Is CVE-2026-137563 being exploited?

There is no known exploitation of CVE-2026-137563 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-137563 and fix it if it is affected.

What it is: CVE-2026-137563 is a medium-severity vulnerability in web-token jwt-experimental, published on 26 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-137563 in the wild and no public exploit code.

Affected packages and fixed versions:
- web-token/jwt-experimental (Packagist): affected from 4.2.1; fixed in 4.2.6
- web-token/jwt-framework (Packagist): affected from 4.2.1; fixed in 4.2.6
- web-token/jwt-library (Packagist): affected from 4.2.1; fixed in 4.2.6

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-137563/ (Markdown: https://insights.sbomify.com/CVE-2026-137563/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-137563
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-137563
- OSV: https://osv.dev/vulnerability/CVE-2026-137563

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-137563/
Summaries are generated and may contain mistakes; the official description above is the record.
