Affected versions are subject to an arbitrary code execution vulnerability achieved by not properly managing cross user temporary files. This vulnerability allows one user to run code as another on the same machine. All users are advised to upgrade.
Reference:
https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x