PyPI: joblib

CVE-2022-21797

Safety vulnerability ID: SFTY-20220926-34155

Safety legacy ID: pyup.io-51242

Affected versions of Joblib are vulnerable to Arbitrary Code Execution via the pre_dispatch flag in Parallel() class due to the eval() statement.

Created at: Nov 6, 2025Updated at: Nov 6, 2025

Overview

joblib vulnerable to arbitrary code execution

Advisory

Affected versions of Joblib are vulnerable to Arbitrary Code Execution via the pre_dispatch flag in Parallel() class due to the eval() statement.

Affected Package

Affecting joblib package, versions
<1.2.0

Also affects

---

How to Fix

Upgrade
joblib
to
1.2.0
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

References

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more