google-auth: cryptography lower bounds fail on Python 3.14 and allow vulnerable releases
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- cryptography, python
- Ambito
- build-system, security, testing
Direzione di ricerca
Inizia da packages/google-auth/setup.py e confronta i relativi marker di cryptography con testing/constraints-3.10.txt e testing/constraints-3.14.txt. Esegui cd packages/google-auth && nox -s unit-3.14, quindi verifica che i vincoli Python supportati selezionino release di cryptography installabili e non vulnerabili e che la sessione unit venga completata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Determine this is the right repository
- I determined this is the correct repository in which to report this bug.
Summary of the issue
Context
Running google-auth unit tests with nox -s unit (or installing with the Python 3.14 constraints file) and reviewing the declared cryptography lower bounds.
Expected Behavior:
nox -s unit-3.14should install dependencies and run tests.- Declared
cryptographylower bounds should be installable on each supported Python version and should not include releases with known high-severity CVEs.
Actual Behavior:
- On Python 3.14, pip fails with
ResolutionImpossible.setup.pyrequirescryptography >= 41.0.5andtesting/constraints-3.14.txtpinscryptography==41.0.5, but 41.0.5 has no Python 3.14 wheels. - On Python 3.10–3.13, the lower bound is
cryptography >= 38.0.3, which still allows 41.0.5 and other releases affected by CVE-2023-49083 and CVE-2026-26007 (fixed in 41.0.6 and 46.0.5).
API client name and version
google-auth v2.57.0
Reproduction steps: code
Run unit-tests for google-auth in packages/google-auth:
cd packages/google-auth
nox -s unit-3.14
Reproduction steps: supporting files
N/A — reproduced from current main using packages/google-auth/setup.py and packages/google-auth/testing/constraints-3.14.txt.
Reproduction steps: actual results
ERROR: Cannot install None because these package versions have conflicting dependencies.
The conflict is caused by:
google-auth 2.57.0 depends on cryptography>=41.0.5; python_version >= "3.14"
The user requested (constraint) cryptography==41.0.5
Additionally, some packages in these conflicts have no matching distributions available for your environment:
cryptography
Reproduction steps: expected results
nox -s unit-3.14 creates the venv, installs google-auth with a cryptography version that has Python 3.14 wheels, and runs the unit tests.
OS & version + platform
No response
Python environment
No response
Python dependencies
N/A — install fails before tests run. Relevant pins from this repo:
setup.py:
cryptography >= 38.0.3; python_version < '3.14'
cryptography >= 41.0.5; python_version >= '3.14'
testing/constraints-3.10.txt: cryptography==38.0.3
testing/constraints-3.14.txt: cryptography==41.0.5
Additional context
Proposed fix:
- Python 3.10–3.13: require cryptography >= 46.0.5 (CVE-2026-26007).
- Python 3.14+: require cryptography >= 50.0.1 (first release with 3.14 wheels).
- Update testing/constraints-3.10.txt and testing/constraints-3.14.txt to those lower bounds.
I will send a PR for this.
- Lingua principale
- Python
- Stelle
- 5.4k
- Fork
- 1.8k
- Merge medio
- 2g 22h
- PR unite (30g)
- 102
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di googleapis/google-cloud-python
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
googleapis/google-cloud-python#18428 ·
-
priority: p2 type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
googleapis/google-cloud-python#18375 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
googleapis/google-cloud-python#18339 ·
-
auth priority: p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
googleapis/google-cloud-python#18315 ·
-
auth effort: low priority: p4 testing type: cleanup
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
googleapis/google-cloud-python#17760 ·
Tutte le issue di googleapis/google-cloud-python
Issue simili
-
link-check link-check:sphinx-theme
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
OpenHands/extensions#626 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
CSCfi/sd-search-api#39 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100