Skip to content

Feature: consider Python version when reporting a vulnerability #949

@jenstroeger

Description

@jenstroeger

Pre-submission checks

  • I am not reporting a new vulnerability or requesting a new vulnerability identifier. These must be reported or managed via upstream dependency sources or services, not this repository.
  • I agree to follow the PSF Code of Conduct.
  • I have looked through the open issues for a duplicate request.

What's the problem this feature will solve?

Following up one issue pypa/pip#13607

It seems to me that pip-audit doesn’t consider the Python version it runs on when reporting a vulnerability.

For example, we run pip-audit in a CI workflow on Python 3.13 which also matches our deployment environment. However, GHSA-4xh5-x5gv-qwph (CVE CVE-2025-8869) does not affect Python 3.13 (apparently) and yet it’s being reported.

Describe the solution you'd like

Would be nice that vulnerabilities that don’t apply to the actively running Python version could be ignored. Assuming the Python version itself is reported by the metadata.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions