scikit-learn sensitive data leakage vulnerability
Published 6 Jun 2024 · Updated 10 Sept 2026
Is your project on an affected scikit-learn?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.5.0
- Fixed in
- 1.5.0
pip install 'scikit-learn>=1.5.0'Details
A sensitive data leakage vulnerability was identified in scikit-learn's TfidfVectorizer, specifically in versions up to and including 1.4.1.post1, which was fixed in version 1.5.0. The vulnerability arises from the unexpected storage of all tokens present in the training data within the stop_words_ attribute, rather than only storing the subset of tokens required for the TF-IDF technique to function. This behavior leads to the potential leakage of sensitive information, as the stop_words_ attribute could contain tokens that were meant to be discarded and not stored, such as passwords or keys. The impact of this vulnerability varies based on the nature of the data being processed by the vectorizer.
Is GHSA-jw8x-6495-233v in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected scikit-learn, and gives you the command that fixes it.
More advisories for scikit-learn
- HighCVE-2020-28975scikit-learn Denial of Service · 24 May 2022
- CriticalCVE-2020-13092scikit-learn Deserialization of Untrusted Data · 24 May 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-5206
- Linkgithub.com/scikit-learn/scikit-learn/commit/70ca21f106b603b611da73012c9ade7cd8e438b8
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/scikit-learn/PYSEC-2024-110.yaml
- Packagegithub.com/scikit-learn/scikit-learn
- Linkhuntr.com/bounties/14bc0917-a85b-4106-a170-d09d5191517c
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.