Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Protobuf and gRPC Version Updates for Python 3.9 - 3.12

Aperta
#1,838 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend, security

Direzione di ricerca

Non sono indicati file, test o punti di ingresso. Inizia individuando le dichiarazioni delle dipendenze di Python Worker e verificando come vengono testate le dipendenze di Python 3.9–3.12. Il lavoro è completato quando protobuf è aggiornato a ~=5.29.6, grpcio a ~=1.70.0 e il test del worker interessato o i controlli di compatibilità hanno esito positivo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

announcement area:python-functions

Summary

Due to a critical security vulnerability (CVE-2026-0994) discovered in protobuf versions prior to 5.29.6, we are updating the protobuf and grpcio dependencies in the Python Worker. This update will be rolled out with host version 4.1052 and may cause breaking changes for some Python function apps.

What's Changing

The following dependency versions are being updated in the Azure Functions Python Worker:

  • protobuf: ~=4.25.3 → ~=5.29.6
  • grpcio: ~=1.59.0 → ~=1.70.0

Who Is Affected

This change may affect you if:

  • Your Python function app uses protobuf or grpcio directly in your code or dependencies
  • Your app runs on Python 3.9, 3.10, 3.11, or 3.12
  • You have pinned specific versions of protobuf or grpcio in your requirements.txt that are incompatible with the new versions

Rollout Timeline

  • Host Version: 4.1052
  • Expected Completion: August 2026

Potential Impact

After this update is deployed, function apps that depend on older versions of protobuf or grpcio may experience:

  • Runtime errors or import failures
  • Type incompatibilities if using protobuf-generated code compiled with older versions
  • Breaking changes in gRPC functionality due to API changes between major versions
RuntimeError: The grpc package installed is at version 1.37.1, but the generated code in
FunctionRpc_pb2_grpc.py depends on grpcio>=1.70.0.

Mitigation Options

Option 1: Update Your Dependencies

Update your requirements.txt to use compatible versions:

protobuf~=5.29.6
grpcio~=1.70.0
Option 2: Use Isolated Worker Dependencies

If you need to continue using older versions of protobuf or grpcio, you can set the PYTHON_ISOLATE_WORKER_DEPENDENCIES application setting to 1 to prioritize your app's pinned versions.

Option 3: Migrate to Python >= 3.13

Migrate your existing function apps to run on Python 3.13 or Python 3.14.

Lingua principale
Python
Stelle
357
Fork
117
Merge medio
13g 12h
PR unite (30g)
2

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/azure-functions-python-worker

Tutte le issue di Azure/azure-functions-python-worker

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.