Is pytest 8.3.4 vulnerable?

pytest 8.3.4, a Python package on PyPI. All 3 versions we track · PyPI page

1 vulnerability

Upgrade pytest from 8.3.4 to 9.0.3 or later.

Known vulnerabilities in pytest 8.3.4

  • Medium CVSS 6.8

    CVE-2025-71176: pytest has vulnerable tmpdir handling

    GHSA-6w46-j5rx-g56g · published 22 Jan 2026 · fixed in 9.0.3

How to fix it

With requirements.txt:

# in requirements.txt: change the line to pytest==9.0.3
pip install -r requirements.txt
  • If it is an indirect dependency, upgrade the package that depends on it, or add a minimum version constraint for it (e.g. in constraints.txt, or as a dependency in pyproject.toml).
  • Check the package's changelog for breaking changes (especially across major versions), update the lockfile with the package manager (never by hand), and run your tests.

Other versions of pytest

Newest version we track without known advisories: 9.2.0.

VersionKnown vulnerabilitiesHighest severity
9.2.0 0 None
9.1.1 0 None
8.3.4 (this page) 1 Medium

Every version of pytest →

Licence

Not looked up yet.

Check your whole project

pytest is one package among hundreds in a lockfile. Upload your lockfile, or paste a public GitHub repository, and get every vulnerable package with the version that fixes it. Free, and no account needed.

Get emailed about new advisories for pytest (free, no account)

About this data

Vulnerability data: OSV.dev, last checked 22 November 2026. Licence: deps.dev. AIssue checks the versions on this page every day. Severity comes from the advisory's own rating when it has one, else from its CVSS score.