Skip to content

Bump 10 PyPI packages to fix known vulnerabilities - #71777

Closed
Hansua155 wants to merge 1 commit into
NousResearch:mainfrom
Hansua155:security-upgrades-20260726
Closed

Hansua155 wants to merge 1 commit into
NousResearch:mainfrom
Hansua155:security-upgrades-20260726

Conversation

@Hansua155

Copy link
Copy Markdown

Summary

Updates 10 PyPI packages to versions without known vulnerabilities (verified against OSV.dev):

Package Old New Vulnerabilities fixed
cryptography 46.0.7 49.0.0 GHSA-537c-gmf6-5ccf
pillow 12.2.0 12.3.0 16 GHSA findings (HIGH)
mcp 1.26.0 1.28.1 GHSA-hvrp, GHSA-jpw9, GHSA-vj7q
httplib2 0.31.2 0.32.0 GHSA-j5g9, PYSEC-2026-3444
pyasn1 0.6.3 0.6.4 GHSA-8ppf, GHSA-hm4w
Pygments 2.19.2 2.20.0 GHSA-5239-wwwm-4pmq
PyNaCl 1.5.0 1.6.2 GHSA-mrfv-m5wm-5w6w
starlette 1.0.1 1.3.1 GHSA-82w8, GHSA-wqp7, GHSA-jp82, GHSA-x746
python-multipart 0.0.27 0.0.32 GHSA-5rvq + 3 more
pydantic-settings 2.13.1 2.14.2 GHSA-4xgf-cpjx-pc3j

Changes

pyproject.toml

  • cryptography==46.0.7cryptography==49.0.0
  • Pillow==12.2.0Pillow==12.3.0
  • python-multipart>=0.0.9,<1python-multipart==0.0.32 (exact pin)
  • starlette==1.0.1starlette==1.3.1 in [dev], [mcp], [computer-use], [web] extras
  • mcp==1.26.0mcp==1.28.1 in [dev], [mcp], [computer-use] extras
  • Added pydantic-settings==2.14.2 to [mcp] extra for GHSA-4xgf-cpjx-pc3j

uv.lock

  • Regenerated via uv lock after pin updates
  • This ensures a clean venv rebuild produces secure versions

Verification: 137 components scanned against OSV.dev — 0 remaining vulnerabilities across all upgraded packages.

@Hansua155
Hansua155 requested a review from a team July 26, 2026 05:18
Updates 10 packages to patched versions across pyproject.toml,
extras, and uv.lock:

  cryptography  46.0.7 → 49.0.0  (GHSA-537c-gmf6-5ccf)
  pillow        12.2.0 → 12.3.0  (16 GHSA findings)
  mcp           1.26.0 → 1.28.1  (GHSA-hvrp-rf83-w775 et al.)
  httplib2      0.31.2 → 0.32.0  (GHSA-j5g9-f88f-gfj3)
  pyasn1        0.6.3  → 0.6.4   (GHSA-8ppf-4f7h-5ppj et al.)
  Pygments      2.19.2 → 2.20.0  (GHSA-5239-wwwm-4pmq)
  PyNaCl        1.5.0  → 1.6.2   (GHSA-mrfv-m5wm-5w6w)
  starlette     1.0.1  → 1.3.1   (GHSA-82w8-qh3p-5jfq et al.)
  python-multipart 0.0.27 → 0.0.32 (GHSA-5rvq-cxj2-64vf et al.)
  pydantic-settings 2.13.1 → 2.14.2 (GHSA-4xgf-cpjx-pc3j)

Also pins python-multipart to ==0.0.32 (was >=0.0.9,<1)
and adds pydantic-settings==2.14.2 to the [mcp] extra.
@Hansua155
Hansua155 force-pushed the security-upgrades-20260726 branch from e1394a2 to 46923c9 Compare July 26, 2026 05:22
@alt-glitch alt-glitch added type/security Security vulnerability or hardening area/config Config system, migrations, profiles dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code P3 Low — cosmetic, nice to have sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades labels Jul 26, 2026
@teknium1

Copy link
Copy Markdown
Collaborator

Partial overlap with #72362 (merged): starlette/python-multipart current on main; cryptography landed at 48.0.1 — note 49.0.0 as proposed here cannot resolve (msal and alibabacloud-tea-openapi cap <49). Still unique: mcp 1.28.1, Pillow 12.3.0, pydantic-settings 2.14.2 bumps. Worth rebasing down to the residue.

@Hansua155 Hansua155 closed this Jul 27, 2026
@Hansua155
Hansua155 deleted the security-upgrades-20260726 branch July 27, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles dependencies Pull requests that update a dependency file P3 Low — cosmetic, nice to have python:uv Pull requests that update python:uv code sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades type/security Security vulnerability or hardening

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants