Intel

AIKIDO-2026-897342

webbrowser is vulnerable to Argument Injection

Argument InjectionGHSA-2ph8-5cr8-hr33 Published Jul 31, 2026

74

High Risk

This Affects:

RUSTwebbrowser
0.0.1 - 1.2.1
Fixed in 1.2.2
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

webbrowser is vulnerable to Argument Injection in versions 0.0.1 - 1.2.1.

How to fix this

Upgrade the webbrowser library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform