Is scikit-learn 0.24 vulnerable?

PyPI · 3 releases from 0.24.0 to 0.24.2 · latest scikit-learn is 1.9.1 · checked 18 Nov 2026

Yes: 2 known advisories

Yes. scikit-learn 0.24.2, the last 0.24 release, is affected by 2 known security advisories (1 high, 1 medium), including CVE-2020-28975, CVE-2024-5206. Upgrade to 1.5.0 or later to fix all of them.

Upgrade with:pip install 'scikit-learn>=1.5.0'

Is your project on an affected scikit-learn?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting scikit-learn 0.24.2

  • MediumCVE-2024-5206GHSA-jw8x-6495-233v6 Jun 2024

    scikit-learn sensitive data leakage vulnerability

    Affected
    <1.5.0
    Fixed in
    1.5.0
  • HighCVE-2020-28975GHSA-jxfp-4rvq-9h9m24 May 2022

    scikit-learn Denial of Service

    Affected
    >=0.23.2 <1.0.1
    Fixed in
    1.0.1

Every scikit-learn 0.24.x release

Affected: 0.24.0 to 0.24.2. Latest scikit-learn: 1.9.1.

VersionKnown advisories
scikit-learn 0.24.2CVE-2024-5206, CVE-2020-28975
scikit-learn 0.24.1CVE-2024-5206, CVE-2020-28975
scikit-learn 0.24.0CVE-2024-5206, CVE-2020-28975

Which of your client projects are still on scikit-learn 0.24?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact scikit-learn version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other scikit-learn versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.