Note that joblib serialization is pickle based and therefore has the same security implications as for any pickle file: consider loading a joblib or pickle file as running a compiled executable: never do it if you do not trust the source.
A new safer alternative for scikit-learn model persistence is skops:
- https://skops.readthedocs.io/en/stable/persistence.html
It makes it possible to trust a list of types of Python objects that are safe to load and refuse to load skops files with untrusted types.