diff --git a/test/upstream-requirements-py311.txt b/test/upstream-requirements-py311.txt
index ea5b80fc..0ad63c28 100644
--- a/test/upstream-requirements-py311.txt
+++ b/test/upstream-requirements-py311.txt
@@ -5,7 +5,7 @@ certifi==2022.12.7
 cffi==1.15.1
 charset-normalizer==3.0.1
 coverage==7.1.0
-cryptography==39.0.1
+cryptography==41.0.2
 execnet==1.9.0
 hypothesis==6.31.6
 idna==3.4
diff --git a/test/upstream-requirements-py37.txt b/test/upstream-requirements-py37.txt
index 0611506e..b263d782 100644
--- a/test/upstream-requirements-py37.txt
+++ b/test/upstream-requirements-py37.txt
@@ -5,7 +5,7 @@ certifi==2022.12.7
 cffi==1.15.1
 charset-normalizer==3.0.1
 coverage==7.1.0
-cryptography==39.0.1
+cryptography==41.0.2
 exceptiongroup==1.1.0
 execnet==1.9.0
 hypothesis==6.31.6