{"cve":"CVE-2024-5206","nvd":{"published":"2024-06-06T19:16:06.363","modified":"2026-06-17T08:15:24.690","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":4.7},"cwes":["CWE-922","CWE-921"],"references":["https://github.com/scikit-learn/scikit-learn/commit/70ca21f106b603b611da73012c9ade7cd8e438b8","https://huntr.com/bounties/14bc0917-a85b-4106-a170-d09d5191517c","https://github.com/scikit-learn/scikit-learn/commit/70ca21f106b603b611da73012c9ade7cd8e438b8","https://huntr.com/bounties/14bc0917-a85b-4106-a170-d09d5191517c"],"products":["scikit-learn:scikit-learn"],"source":"nvd","synced_at":"2026-10-19T21:51:20.603330631+00:00"},"epss":{"cve":"CVE-2024-5206","score":0.00189,"percentile":0.08518,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-jw8x-6495-233v","url":"https://osv.dev/vulnerability/GHSA-jw8x-6495-233v","summary":"scikit-learn sensitive data leakage vulnerability","modified":"2026-09-10T03:50:15.628224747Z","packages":[{"ecosystem":"PyPI","name":"scikit-learn","purl":"pkg:pypi/scikit-learn","ranges":["<1.5.0"],"fixed":["1.5.0"]}]},{"id":"PYSEC-2024-110","url":"https://osv.dev/vulnerability/PYSEC-2024-110","summary":"","modified":"2026-06-10T17:02:43.910139851Z","packages":[{"ecosystem":"PyPI","name":"scikit-learn","purl":"pkg:pypi/scikit-learn","ranges":["<1.5.0"],"fixed":["1.5.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}