Intel

AIKIDO-2026-897342

webbrowser is vulnerable to Argument Injection

GHSA-2ph8-5cr8-hr33Published Jul 31, 2026
July 31, 2026

74

CVE Score

High

Argument Injection

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.

How do I fix this?

Upgrade the webbrowser library to the patch version.

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.

Package

Versions

0.0.1 - 1.2.1

Fixed in 1.2.2

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea