Medium (4.1) in pypa pip. EPSS 0.3% chance of exploitation in the next 30 days. Fixed in pip 26.1.2.
pip would treat console_scripts and gui_scripts as paths instead of file names without sanitizing the resolved absolute path to the installation directory, leading to entry points being installed outside the installation directory.