Grades are a hygiene check, not a security guarantee.

MCP, MCP server

ScopeGate

Never hand an AI agent a full OAuth scope again.

Compatibility: Not stated.

Grade B

Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

NETWORK_NO_FIXED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ OBFUSCATION_FILE_OVER_READ_CAP OBFUSCATION_FILE_CAP_REACHED

Why this grade

  • NETWORK_NO_FIXED_HOST Low

    Makes a network call whose host is not written as a fixed address.

    CLAUDE.md, line 45 safe-fetch.ts # SSRF/DNS-rebinding-safe fetch (node:https); validates all A/AAAA records

  • SECRETS_PATH_DOTENV Low

    Mentions a .env file.

    .claude/commands/add-api.md, line 67 10. **Add .env vars to `.env.example`** if it exists

  • SECRETS_ENV_READ Note

    Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.

    src/app/(dashboard)/billing/page.tsx, line 72 checkoutAvailable={Boolean(process.env.POLAR_ACCESS_TOKEN)}

  • OBFUSCATION_FILE_OVER_READ_CAP Note

    A file was over the read cap and was not fully read.

    pnpm-lock.yaml, line 1 lockfileVersion: '9.0'

  • OBFUSCATION_FILE_CAP_REACHED Note

    The 400 file cap was reached before every file was read.

    pnpm-lock.yaml, line 1 lockfileVersion: '9.0'

Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.

Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.

What was checked

Plain notes from the hygiene checks.

  • Permissions

    Pass

    No shell or command call was found in the code. This check does not read permissions an entry declares. A permission line to run shell commands, write or edit files and fetch web content was found in this repository, and it may apply to this entry.

  • Install and update

    Pass

    No install-time script found, and dependencies are pinned or absent.

  • Network

    Concern

    can reach a host that is not written as a fixed address.

    NETWORK_NO_FIXED_HOST

    CLAUDE.md, line 45

    safe-fetch.ts # SSRF/DNS-rebinding-safe fetch (node:https); validates all A/AAAA records

    CLAUDE.md, line 135

    - `service-fetch.ts` is the unified MCP transport: use `serviceFetch(connectionId, path, opts)` - handles token retrieval, base URL, provider-specific headers, SSRF protection, and

    CLAUDE.md, line 155

    - Twitter error handling (`src/lib/mcp/twitter.ts`): 401 → `OAuthTokenError` (triggers reconnect); 403 stays as generic error intentionally - avoid false revokes on duplicate tweet

    Show more

    Dockerfile, line 66

    CMD node -e "fetch('http://127.0.0.1:3000/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"

    docker-compose.yaml, line 103

    "fetch('http://127.0.0.1:3000/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",

    docs/_archive/insights/security/2026-06-07.md, line 10

    | SSRF | DNS-rebinding / multi-record TOCTOU: `safeFetch` проверяет один резолв, `fetch()` резолвит повторно без закрепления IP | medium | `src/lib/mcp/safe-fetch.ts:53-81` |

    docs/_archive/insights/security/2026-07-14.md, line 43

    - Статический греп: нет `eval` / `dangerouslySetInnerHTML` / `child_process` / raw-SQL интерполяции; raw `fetch()` только на константные URL (Twitter upload) и IMAP-клиент.

    docs/logs/2026-08-11.md, line 128

    | OAuth-обмен токенов без транспортного шва: ~30 сырых `fetch()` в 14 файлах, `AbortSignal` есть у 3 из 14; +47 строк дубля Meta-обмена | `src/lib/*-oauth.ts`, `service-key-validat

    docs/logs/2026-08-12.md, line 11

    - Task #218 - единый транспорт `oauthFetch()` (`src/lib/oauth-fetch.ts`) для OAuth-обмена токенов и валидации API-ключей: обязательный `AbortSignal.timeout`, CLIENT-спан как у `ser

    docs/state/arch.md, line 55

    | D-0002 | Свой `safe-fetch` на `node:https` вместо `fetch()` | Защита от SSRF и DNS-rebinding: проверяются ВСЕ A/AAAA-записи до соединения | Ни один tools/*.ts не вызывает голый `

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_DOTENV

    src/app/(dashboard)/billing/page.tsx, line 72

    checkoutAvailable={Boolean(process.env.POLAR_ACCESS_TOKEN)}

    src/components/landing/hero.tsx, line 6

    { type: "bad", text: ' apiKey: process.env.GOOGLE_FULL_KEY,' },

    .claude/commands/add-api.md, line 67

    10. **Add .env vars to `.env.example`** if it exists

    Show more

    .dockerignore, line 10

    scripts

    .gitignore, line 33

    # env files (can opt-in for committing if needed)

    .gitignore, line 34

    .env

    .gitignore, line 35

    .env.local

    .gitignore, line 36

    .env.development.local

    .gitignore, line 37

    .env.test.local

    .gitignore, line 53

    /scripts/

  • Agent instructions

    Pass

    No instruction to ignore earlier instructions or to hide a step.

  • Obfuscation

    Note

    a file was over the read cap and was not fully read. the file cap was reached before every file was read.

    OBFUSCATION_FILE_OVER_READ_CAP OBFUSCATION_FILE_CAP_REACHED

    pnpm-lock.yaml, line 1

    lockfileVersion: '9.0'

    src/components/ui/tabs.tsx, line 1

    "use client"

  • Licence

    Pass

    A licence file is present (LICENSE).

  • Maintainer activity

    Pass

    The latest commit is within the last 365 days.

Note

Hygiene check of commit f0eb9b94e4dd. can reach a host that is not written as a fixed address. reads a credential or environment file. a file was over the read cap and was not fully read. the file cap was reached before every file was read.

Date and source

Date checked:

View source

github.com

Commit graded: f0eb9b94e4dd5779655370da6facab033a1cdab4

This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.

Read how this letter is chosen