Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @gitlawb/openclaude
  4. ›
  5. CVE-2026-42073

CVE-2026-42073: OpenClaude MCP OAuth Callback: State Check Bypass via error Param Leads to DoS

May 12, 2026 (updated June 9, 2026)

The OpenClaude MCP authentication flow starts a temporary local HTTP server to handle OAuth callbacks. To prevent CSRF attacks, the server validates a state parameter against an internally stored value. However, due to a logic flaw in the order of conditionals, an attacker can completely bypass this check and force the server to shut down — without knowing the state value at all.

The vulnerable code looks like this:

if (!error && state !== oauthState) {
rejectOnce(new Error('OAuth state mismatch - possible CSRF attack'))
return
}

if (error) {
cleanup()
rejectOnce(new Error(errorMessage))
return
}

When a request arrives with an error query parameter (e.g., ?error=anything), the first condition becomes false because !error evaluates to false. This means the CSRF check is never reached. Execution falls through to the second block, where cleanup() is called — shutting down the local server and terminating the user’s active authentication session.

The attacker does not need to know the state value. Any request containing an error parameter is enough to trigger the shutdown.


References

  • github.com/Gitlawb/openclaude/commit/739b8d1f40fde0e401a5cbd2b9a55d88bd5124ad
  • github.com/Gitlawb/openclaude/releases/tag/v0.5.1
  • github.com/Gitlawb/openclaude/security/advisories/GHSA-c73c-x77g-854r
  • github.com/advisories/GHSA-c73c-x77g-854r
  • nvd.nist.gov/vuln/detail/CVE-2026-42073

Code Behaviors & Features

Detect and mitigate CVE-2026-42073 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.5.1

Fixed versions

  • 0.5.1

Solution

Upgrade to version 0.5.1 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/@gitlawb/openclaude/CVE-2026-42073.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:50 +0000.