Skip to content

fix(deps): clear open security alerts with lockfile bumps - #264

Merged
glebedel merged 5 commits into
mainfrom
s2d2/audit-security-lockfiles
Nov 11, 2026
Merged

glebedel merged 5 commits into
mainfrom
s2d2/audit-security-lockfiles

Conversation

@glebedel

@glebedel glebedel commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Clears all 60 open Dependabot alerts (4 critical, 25 high) by moving lockfile versions to patched releases; 6 of them (certifi, langsmith twice, langgraph, langgraph-sdk, python-dotenv) were already cleared by #251, which merged first. Every new version is inside the ranges pyproject.toml already allows. Only uv.lock, pnpm-lock.yaml, the mock server's exact @modelcontextprotocol/sdk pin and one Dependabot rule change, so nothing in the published package's metadata moves.

What moves

Each package goes to its highest first-patched version across its open alerts, not to latest.

Package From To Alerts
mcp (core dependency) 1.25.0 1.30.0 7 (3 high)
authlib 1.6.11 1.9.1 10 (1 critical, 3 high)
pyasn1 0.6.3 0.6.5 7 high
cryptography 46.0.7 50.0.0 4 (3 high), fix exists only in 50.x
anyio 4.12.0 4.14.2 2 (1 critical)
certifi 2025.11.12 2026.10.23 1 critical; moved by #251, which merged first
langsmith 0.7.31 0.14.17 2 high; moved by #251, which merged first
dnspython 2.8.0 2.9.0 1 high
filelock, joserfc, fastmcp, fastmcp-slim, pydantic-settings patched 1 to 2 each, medium (langgraph, langgraph-sdk and python-dotenv were moved by #251, which merged first)
opentelemetry-api 1.39.1 1.45.1 1 medium
@modelcontextprotocol/sdk (mock server) 1.24.3 1.32.1 5 (3 high)
proxy-addr, fast-uri, qs (mock server) 2.0.8, 3.1.9, 6.17.1 6 (1 critical)
body-parser (mock server) 2.3.0 2.4.0 GHSA-27r3-jxmh-p828, found by the security scan, no alert yet
pydantic, pydantic-core 2.12.5, 2.41.5 2.14.2, 2.50.2 pydantic's own repository advisories GHSA-955g-x97g-8mcp, GHSA-gj4f-r7mf-jjxh and GHSA-3r8g-cqwr-jr29 (medium; 2.12.5 is affected), plus GHSA-qpmf-fgh3-ff25 (affects 2.13.x only). These are not in Dependabot or OSV yet; found by Codex. Moved by #251, which merged first
cohere, typing-extensions, typing-inspection 6.1.0, 4.15.0, 0.4.2 7.3.0, 4.16.0, 0.4.4 (moved by #251, which merged first) none: cohere 6.1.0 does not accept pydantic 2.14, and the two typing packages are pydantic 2.14's floors. cohere only reaches the examples extra through pydantic-ai

opentelemetry-api 1.45 needs the rest of the OpenTelemetry set at 1.45.1 / 0.66b1 (two new exporter packages from the same upstream). That set requires logfire 5.2.0 and mistralai 3.3.0. These match the versions Dependabot's own branch picked, and they only reach the examples extra through pydantic-ai.

Supply-chain checks:

  • Every changed Python release is at least 14 days old. npm versions respect the 7-day minimumReleaseAge the mock server already enforces.
  • All sources are pypi.org or the npm registry.
  • The mock pin stays exact, as CLAUDE.md requires.

How it was verified

Check Result
uv sync --locked --all-extras (Python 3.13) ok
uv run ruff check ., ruff format --check . clean
uv run ty check stackone_ai examples clean
uv run pytest (integration tests run against the mock server on sdk 1.32.1) 871 passed
uv lock --check, pnpm install --frozen-lockfile ok
scripts/validate.sh with the conformance repo 5 of 6 pass (conformance, SDK smoke, Pydantic AI 1.x and 2.x smoke); ADK skipped, its plugin repo is not available here
Each open alert's first patched version vs the new lock 60 of 60 cleared

.github/dependabot.yaml: the mock server's MCP SDK ignore now blocks majors only, as its comment already said. 1.32.1 still serves the raw inputSchema, so the stated reason no longer holds, and ignoring every version also stops Dependabot from proposing future security fixes for it.

Supersedes #240 (authlib), #249 (pyasn1) and #252 (grouped lockfile updates, every package there is covered at the same or a newer version). The mcp 2.x major (#208) stays separate. #251 merged first, so the merged lock keeps its higher versions of certifi, langsmith, langgraph, langgraph-sdk, python-dotenv, pydantic, pydantic-core, cohere and the typing packages.

Not in this PR: pyproject.toml still allows mcp>=1.24.3 (and python-dotenv>=1.0.1 in the examples extra), so a user who already has an older version installed keeps it when installing stackone-ai. Raising those floors changes what library users can install, so it is left as a separate decision.

Gates

Gate Result
/forge:forge n/a, lockfiles and one Dependabot rule, no hand-written code (meter: 0 added comment lines, 0 findings)
Security scan + Aikido dependency reviewer: one finding (body-parser 2.3.0), fixed in 077a536. OSV clean for every other locked package. Aikido: 16 open critical/high issues, all in uv.lock (anyio, certifi, cryptography, dnspython, langsmith, mcp), all at or below the new versions
Codex security 2027595: body-parser 2.3.0 still locked (fixed in 077a536), no other supply-chain finding. 077a536: clean (pnpm audit 0, OSV 0 across 303 packages, hashes match registry metadata). 64634e3: clean (langgraph-sdk 0.4.6 has no OSV advisory, hashes match PyPI, the update-types ignore is valid and widens update coverage), and flagged pydantic's repository advisories, fixed in 160c6ea. 160c6ea: clean (all 135 changed artifacts match PyPI URLs, hashes and sizes, none yanked, OSV 0, all upgrades)
/security-review ran: no secrets, all sources are the PyPI and npm registries, the mock pin is exact; the server-side items do not apply to a lockfile
/code-review medium on 2027595 and 077a536. Fixed: young releases (relocked to exact first-patched versions, all at least 14 days old), the wider-than-needed upgrade, langgraph-sdk pinned to 0.4.6, the stale Dependabot ignore. Declined: cryptography 50 is required (CVE-2026-69247 is patched only in 50.x); logfire 5 and mistralai 3 come with opentelemetry-api 1.45.1 (examples extra only, conformance and Pydantic AI smoke pass); the new 3.14 and win32 resolution markers are resolver output. Package floors left as a decision
CI green on 160c6ea: 10 pass (3.11, 3.12, 3.13, conformance, gitleaks, Aikido), 3 skipped
Unresolved review threads 0

Requested by guillaume@stackone.com in Slack (repo audit thread).

🤖 Generated with Claude Code

s2d2-s1 and others added 3 commits November 11, 2026 01:10
Moves the locked versions of vulnerable Python and mock-server packages to
patched releases inside the ranges pyproject.toml already allows. The mock
server's exact @modelcontextprotocol/sdk pin moves from 1.24.3 to 1.32.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
Relocks from main with exact versions (the highest first-patched version of
each alerted package), so nothing moves further than the advisories require
and every new release is at least 14 days old, in line with the 7-day
minimumReleaseAge the mock server already enforces. Moves body-parser in the
mock server to 2.4.0 for GHSA-27r3-jxmh-p828.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
…s through

langgraph-sdk 0.4.6 is the first patched version and resolves with langgraph
1.2.14, so the lock goes no further. The mock server's MCP SDK ignore now
blocks majors only, as its comment says: 1.32.1 still serves the raw
inputSchema, and ignoring every version also hid future security updates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
pydantic published four medium advisories (GHSA-955g-x97g-8mcp,
GHSA-gj4f-r7mf-jjxh, GHSA-3r8g-cqwr-jr29, GHSA-qpmf-fgh3-ff25) that affect the
locked 2.12.5 and are fixed in 2.14.2. They are not in the global advisory
database yet, so Dependabot has not raised them. cohere moves to 7.2.0, the
oldest release that accepts the new pydantic-core; typing-inspection stays on
0.4.4 to respect the 7-day release age.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
Conflicts in package.json, pnpm-lock.yaml and uv.lock after main took the
hono 4.13.16 bump and the grouped Python updates. package.json keeps this
branch's MCP SDK 1.32.1 and main's hono 4.13.16. uv.lock starts from main
and re-applies this branch's security bumps, so no package is lower than on
either side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
@glebedel
glebedel merged commit 2ca1845 into main Nov 11, 2026
13 checks passed
@glebedel
glebedel deleted the s2d2/audit-security-lockfiles branch November 11, 2026 12:08
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.

2 participants