Repository navigation
Scan baseline: re-review fastmcp-slim 4.2.0 apps_dev.py - #17768
Merged
Merged
Conversation
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.
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):fastmcp>=4.1.5,<5instudio/backend/requirements/studio.txtnow resolves 4.2.0, which pinsfastmcp-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.pyin the 4.1.8 and 4.2.0 wheels from PyPI (64 diff lines):_local_http_client()returninghttpx2.AsyncClient(timeout=..., trust_env=False), passed tostreamable_http_clientfor the dev server's own MCP URL, so a proxy in the environment is not used for localhost_npm_tarball_url(version): the ext-apps tarball URL honoursnpm_config_registry/NPM_CONFIG_REGISTRY, defaulting tohttps://registry.npmjs.orgtarfile.open(fileobj=io.BytesIO(data), mode="r:gz")and the remaininghttpx2/socketcallsNo
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 reviewedapps_dev.pyentries. The other 4.2.0 finding (jwt.py, HIGH) already matches a reviewed entry. Nothing else inscripts/scan_packages_baseline.jsonchanges.Tests
python scripts/scan_packages.py fastmcp-slim==4.2.0: exit 0 with this baseline, exit 1 with main's.scripts/scan_packages_baseline.json: 218 passed.