The software fails to restrict environment variables to an allowlist when spawning child processes, such as `npm install`, `postUpgradeTasks`, and `postUpdateOptions`. This allows child processes to gain full access to all environment variables of the main process, which could enable attackers to exfiltrate secrets accessible to the deployment.