Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[PyOV] Mitigate CVE vulnerability in `torch` (#31271)

Przemyslaw Wysocki586045ee9aa3
diff --git a/src/bindings/python/src/openvino/preprocess/torchvision/requirements.txt b/src/bindings/python/src/openvino/preprocess/torchvision/requirements.txt
index 4562d3a703e..127c3546e42 100644
--- a/src/bindings/python/src/openvino/preprocess/torchvision/requirements.txt
+++ b/src/bindings/python/src/openvino/preprocess/torchvision/requirements.txt
@@ -1,5 +1,5 @@
--extra-index-url https://download.pytorch.org/whl/cpu
networkx<=3.2.1; python_version <= '3.9'
-torch>=2.6.0
+torch>=2.7.0
torchvision
pillow>=9.0
\ No newline at end of file
diff --git a/tests/requirements_pytorch b/tests/requirements_pytorch
index 84950e3affe..29bbde5c341 100644
--- a/tests/requirements_pytorch
+++ b/tests/requirements_pytorch
@@ -3,11 +3,11 @@
# optimum still requires numpy<2.0.0
numpy==1.26.4; python_version < "3.12"
numpy==2.1.1; python_version >= "3.12"
-torch==2.6.0
+torch==2.7.0
--extra-index-url https://download.pytorch.org/whl/cpu
-torchvision==0.21.0
-torchaudio==2.6.0
+torchvision==0.22.0
+torchaudio==2.7.0
# before updating transformers version, make sure no tests (esp. sdpa2pa) are failing
transformers==4.47.1
pytest==7.0.1; python_version < '3.10'