There is a security vulnerability in the untrusted workspaces flow with specially crafted workspaces.
Patches
The fix is available starting with 2025.8.1 fix is: 5e64d0e
Workarounds
Check for python executables checked-into SCM before opening untrusted workspaces.
References