# CVE-2023-40171: Dispatch writes JWT tokens in error message

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.03% (percentile 63, 2026-11-26)
- **CWE:** CWE-209
- **Published:** 2023-08-17T21:19:28.326Z
- **Modified:** 2026-06-17T06:16:32.080Z

## Who should check

- Anyone running Netflix dispatch \< 20230817

## Description

Dispatch is an open source security incident management tool. The server response includes the JWT Secret Key used for signing JWT tokens in error message when the \`Dispatch Plugin - Basic Authentication Provider\` plugin encounters an error when attempting to decode a JWT token. Any Dispatch users who own their instance and rely on the \`Dispatch Plugin - Basic Authentication Provider\` plugin for authentication may be impacted, allowing for any account to be taken over within their own instance. This could be done by using the secret to sign attacker crafted JWTs. If you think that you may be impacted, we strongly suggest you to rotate the secret stored in the \`DISPATCH\_JWT\_SECRET\` envvar in the \`.env\` file. This issue has been addressed in commit \`b1942a4319\` which has been included in the \`20230817\` release. users are advised to upgrade. There are no known workarounds for this vulnerability.

## Affected and fixed versions

- Netflix dispatch: \< 20230817 (cvelist)

## Mitigation

- Upgrade dispatch to 20230817 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-40171. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-40171.md
Affected: Netflix dispatch < 20230817
Fixed in: Netflix dispatch 20230817

Steps:
1. Search this machine and project for Netflix dispatch: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-40171 being exploited?

There is no confirmed exploitation: CVE-2023-40171 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.03% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-40171?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-40171?

Netflix dispatch \< 20230817.

### Is there a fix for CVE-2023-40171?

Yes. Fixed in Netflix dispatch 20230817. Upgrade dispatch to 20230817 or later.

### How do I check if I'm affected by CVE-2023-40171?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/Netflix/dispatch/security/advisories/GHSA-fv3x-67q3-6pg7>
- patch: <https://github.com/Netflix/dispatch/pull/3695>
- patch: <https://github.com/Netflix/dispatch/commit/b1942a4319f0de820d86b84a58ebc85398b97c70>
- other: <https://github.com/Netflix/dispatch/releases/tag/latest>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-40171>

HTML: <https://flawdb.com/CVE-2023-40171> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-40171>
