GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — All MCP oauth flow return potential CSRF attack · Issue #9510 · anomalyco/opencode

All MCP oauth flow return potential CSRF attack #9510

New issue
Copy link
New issue
Copy link
Closed
Closed
All MCP oauth flow return potential CSRF attack#9510
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@benjaminshafii
benjaminshafii
opened on Jan 19, 2026
Issue body actions

Hey been running in a few issues trying to use MCP. And can't spot what I might've done wrong.

I also tried with stripe mcp and got the same results.

Note: I tested this on two independent machines

Description

{
  "$schema": "https://opencode.ai/config.json",
  "autoupdate": true,
  "mcp": {
    "notion": {
      "type": "remote",
      "url": "https://mcp.notion.com/mcp",
      "enabled": true
    }
  }
}

Plugins

n/a

OpenCode version

1.1.25

Steps to reproduce

opencode --version
1.1.25
 opencode mcp auth notion

┌  MCP OAuth Authentication
│
◐  Starting OAuth flow..

See video for additional context

Clipboard-20260119-212610-630.mp4

Screenshot and/or share link

No response

Operating System

26.0.1

Terminal

vscode

Activity

  1. benjaminshafii
    added
    bugSomething isn't working
    on Jan 19, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 19, 2026
  3. github-actions commented on Jan 19, 2026

    @github-actions
    github-actionsBot
    on Jan 19, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • MCP- conection #8682: MCP connection issues with configured servers (Notion MCP mentioned)
    • Support OpenRouter OAuth PKCE authentication #7766: OAuth PKCE authentication - shows proper OAuth security patterns that may be missing from MCP OAuth flow
    • Enable User Sign-in with Codex ChatGPT Accounts via OAuth #3281: Comprehensive OAuth implementation with CSRF protection via state parameters
    • [FEATURE]: Zen OAuth login #8526: Feature request for OAuth login that may need CSRF security considerations

    Feel free to ignore if none of these address your specific case.

  4. benjaminshafii
    changed the title [-]MCP oauth flow returns potential CSRF attack[/-] [+]All MCP oauth flow return potential CSRF attack[/+] on Jan 19, 2026
  5. danieluhm2004 commented on Jan 19, 2026

    @danieluhm2004
    danieluhm2004
    on Jan 19, 2026
    More actions

    Same here.


    I checked this.

    If even one Opencode client is enabled, OAuth authentication is performed on that server. It seems the state value isn't shared between processes, resulting in a rejection.

    I killed all Opencode clients and tried logging in again, and it worked without any issues.

    Reacted by qwerdee, Raul and Rasmus Rask
  6. raserma commented on Jan 20, 2026

    @raserma
    raserma
    on Jan 20, 2026
    More actions

    I killed all Opencode clients and tried logging in again, and it worked without any issues.

    Thank you, that solved the issue for me 🎉

  7. github-actions commented on Mar 26, 2026

    @github-actions
    github-actionsBot
    on Mar 26, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  8. github-actions
    closed this as completedon Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.