VYPR
Unrated severityNVD Advisory· Published Aug 17, 2023· Updated Oct 7, 2024

Dispatch writes JWT tokens in error message

CVE-2023-40171

Description

Dispatch leaks the JWT secret key in error messages, allowing attackers to forge tokens and take over any account.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Dispatch leaks the JWT secret key in error messages, allowing attackers to forge tokens and take over any account.

Vulnerability

The vulnerability resides in the Dispatch Plugin - Basic Authentication Provider plugin. When the plugin attempts to decode a malformed JWT token, the error handler includes the DISPATCH_JWT_SECRET value in the HTTP 401 response detail. This affects all Dispatch instances using the Basic Authentication Provider prior to commit b1942a4319 (release 20230817). [3][4]

Exploitation

An attacker with network access to a vulnerable Dispatch instance can send a crafted invalid JWT token to the authentication endpoint. The server responds with an error message containing the JWT secret key. The attacker then uses this secret to sign arbitrary JWTs, impersonating any user. [3]

Impact

Successful exploitation allows full account takeover within the Dispatch instance. The attacker can forge tokens for any email address, gaining the privileges of that user, including administrative access if the target account has such rights. [3]

Mitigation

Upgrade to Dispatch release 20230817 or later, which includes commit b1942a4319 that removes the secret from error messages. After upgrading, rotate the DISPATCH_JWT_SECRET environment variable in the .env file. No workarounds are available. [3][4]

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • Netflix/Dispatchllm-fuzzy2 versions
    <20230817+ 1 more
    • (no CPE)range: <20230817
    • (no CPE)range: < 20230817

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

4

News mentions

0

No linked articles in our index yet.