Skip to content

Scan baseline: re-review fastmcp-slim 4.2.0 apps_dev.py - #17768

Merged
danielhanchen merged 1 commit into
mainfrom
fix/scan-baseline-fastmcp-slim-420
Nov 14, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/scan-baseline-fastmcp-slim-420

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Problem

pip scan-packages :: studio (Security audit) has failed since fastmcp-slim 4.2.0 reached PyPI on 2026-11-13, on staging runs for unrelated PRs (#17069, #17763):

CRITICAL  fastmcp-slim  fastmcp/cli/apps_dev.py  (Creates archive with sensitive data AND makes network calls)
Summary: 1 CRITICAL, 256 MEDIUM

fastmcp>=4.1.5,<5 in studio/backend/requirements/studio.txt now resolves 4.2.0, which pins fastmcp-slim==4.2.0. The site was reviewed for 4.1.x, but 4.2.0 rewrote the matched code, so the evidence hash no longer matches and the reviewed entry reopens. This is the same kind of per-release re-review as #17421.

Review

I diffed fastmcp/cli/apps_dev.py in the 4.1.8 and 4.2.0 wheels from PyPI (64 diff lines):

Change Verdict
New _local_http_client() returning httpx2.AsyncClient(timeout=..., trust_env=False), passed to streamable_http_client for the dev server's own MCP URL, so a proxy in the environment is not used for localhost benign
New _npm_tarball_url(version): the ext-apps tarball URL honours npm_config_registry / NPM_CONFIG_REGISTRY, defaulting to https://registry.npmjs.org benign, matches npm's own behaviour
tarfile.open(fileobj=io.BytesIO(data), mode="r:gz") and the remaining httpx2 / socket calls unchanged

No exec, eval, compile, marshal, credential paths or metadata endpoints were added.

Fix

Add the 4.2.0 evidence hash (0a6a8112...) as a new entry next to the two reviewed apps_dev.py entries. The other 4.2.0 finding (jwt.py, HIGH) already matches a reviewed entry. Nothing else in scripts/scan_packages_baseline.json changes.

Tests

  • python scripts/scan_packages.py fastmcp-slim==4.2.0: exit 0 with this baseline, exit 1 with main's.
  • Tests that read scripts/scan_packages_baseline.json: 218 passed.

fastmcp-slim 4.2.0 (PyPI, 2026-11-13) rewrote the flagged code in fastmcp/cli/apps_dev.py,
so pip scan-packages :: studio reopens its reviewed CRITICAL (archive + network) finding and
fails for every run that resolves fastmcp 4.2.0.

The diff against 4.1.8 adds a local httpx2.AsyncClient with trust_env=False for the dev
server's own MCP endpoint, and lets npm_config_registry / NPM_CONFIG_REGISTRY choose the
registry for the ext-apps tarball. The tarfile read and the other network calls are
unchanged. Benign; add the new evidence hash next to the reviewed ones.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T15:15:49.808898Z 61f5536 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 61f55361b6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 8fc3ae2 into main Nov 14, 2026
@danielhanchen
danielhanchen deleted the fix/scan-baseline-fastmcp-slim-420 branch November 14, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant