webbrowser is vulnerable to Argument Injection
74
High Risk
On Unix, the crate builds a browser command from the BROWSER environment variable template by substituting the caller-supplied URL into the template and then splitting the entire resulting string on whitespace. When an application opens an externally influenced non-HTTP(S) URL whose parsed form still contains spaces, that content crosses argument boundaries and becomes additional browser argv entries. Injected flags such as --remote-debugging-port or --proxy-server then reach the launched browser, exposing a local debugging endpoint or redirecting browser traffic through an attacker-chosen proxy. The fix tokenizes the template before inserting the URL and passes the URL to the child process exactly once as a single argument.
You are affected if you are using a version that falls within the vulnerable range and you run on Unix with a BROWSER environment variable template containing %s and pass an externally influenced non-HTTP(S) URL to the browser-opening API.
webbrowser is vulnerable to Argument Injection in versions 0.0.1 - 1.2.1.
Upgrade the webbrowser library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant