PyPI package

torch 2.9.1 vulnerabilities, and what to upgrade to

torch 2.9.1 has 4 known vulnerabilities; 2.13.0 fixes 3 of them, and 1 has no fixed version yet.

PyPI (opens in a new tab) describes it as “Tensors and Dynamic neural networks in Python with strong GPU acceleration”

Known vulnerabilities
4
None rated high or critical
Released
Nov 12, 2025
Latest is 2.14.1
Licence
Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MIT
Pulls in
25 packages
Resolved by deps.dev

What to upgrade to

2.13.0 is the closest release with no known vulnerabilities.

  • 2.13.0Upgrade to this

    Fixes 3 of the 4 known vulnerabilities. Released Jul 8, 2026.

    No known vulnerabilities
  • 2.14.1

    Newest 2.x release and the latest release. Released Sep 30, 2026.

    No known vulnerabilities

2.13.0 came out on Jul 8, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for torch 2.9.1

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. WarningCVE-2026-24747 on OSV.dev (opens in a new tab)GHSA-63cw-57p8-fm3pEPSS: top 44%

    PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's `weights_only` unpickler allows an attacker to craft a malicious checkpoint file (`…

    Fixed in 2.10.0. Published Jan 27, 2026.

  2. WarningCVE-2026-4538 on OSV.dev (opens in a new tab)PYSEC-2026-139EPSS: top 68%

    A vulnerability was identified in PyTorch 2.10.0. The affected element is an unknown function of the component pt2 Loading Handler. The manipulation leads to deserialization. The attack can only be p…

    No fixed version listed yet. Published Mar 22, 2026.

  3. LowCVE-2025-3000 on OSV.dev (opens in a new tab)GHSA-rrmf-rvhw-rf47EPSS: top 91%

    PyTorch is vulnerable to memory corruption through its torch.jit.script function

    Fixed in 2.13.0. Published Mar 31, 2025.

  4. LowCVE-2025-3001 on OSV.dev (opens in a new tab)GHSA-qfhq-4f3w-5fphEPSS: top 92%

    PyTorch is vulnerable to memory corruption through its torch.lstm_cell function

    Fixed in 2.10.0. Published Mar 31, 2025.

Is torch the only one?

Paste a public GitHub repo or drop your requirements.txt or pyproject.toml and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly torch 2.9.1, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and PyPI. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against PyPI, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.