gh-137586: Open external osascript program with absolute path by fionn · Pull Request #137584 · python/cpython (original) (raw)

@fionn fionn changed the titleOpen web browser with absolute path gh-137586: Open web browser with absolute path

Aug 9, 2025

@fionn

On macOS, web browsers are opened via popen calling osascript. However, if a user has a colliding osascript executable earlier in their PATH, this may fail or cause unwanted behaviour.

Depending on one's environment or level of paranoia, this may be considered a security vulnerability.

@fionn

@fionn

@gpshead

hugovk

@fionn @hugovk

Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Apr 6, 2026

…ythonGH-137584)

Open web browser with absolute path

On macOS, web browsers are opened via popen calling osascript. However, if a user has a colliding osascript executable earlier in their PATH, this may fail or cause unwanted behaviour.

Depending on one's environment or level of paranoia, this may be considered a security vulnerability. (cherry picked from commit a0c57a8)

Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Apr 6, 2026

…ythonGH-137584)

Open web browser with absolute path

On macOS, web browsers are opened via popen calling osascript. However, if a user has a colliding osascript executable earlier in their PATH, this may fail or cause unwanted behaviour.

Depending on one's environment or level of paranoia, this may be considered a security vulnerability. (cherry picked from commit a0c57a8)

Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Apr 6, 2026

…ythonGH-137584)

Open web browser with absolute path

On macOS, web browsers are opened via popen calling osascript. However, if a user has a colliding osascript executable earlier in their PATH, this may fail or cause unwanted behaviour.

Depending on one's environment or level of paranoia, this may be considered a security vulnerability. (cherry picked from commit a0c57a8)

Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Apr 6, 2026

…ythonGH-137584)

Open web browser with absolute path

On macOS, web browsers are opened via popen calling osascript. However, if a user has a colliding osascript executable earlier in their PATH, this may fail or cause unwanted behaviour.

Depending on one's environment or level of paranoia, this may be considered a security vulnerability. (cherry picked from commit a0c57a8)

Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Apr 6, 2026

…ythonGH-137584)

Open web browser with absolute path

On macOS, web browsers are opened via popen calling osascript. However, if a user has a colliding osascript executable earlier in their PATH, this may fail or cause unwanted behaviour.

Depending on one's environment or level of paranoia, this may be considered a security vulnerability. (cherry picked from commit a0c57a8)

Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

hugovk added a commit that referenced this pull request

Apr 7, 2026

…H-137584) (#148173)

Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

hugovk added a commit that referenced this pull request

Apr 7, 2026

…H-137584) (#148174)

Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

hugovk added a commit that referenced this pull request

Apr 7, 2026

…H-137584) (#148175)

Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

hugovk added a commit that referenced this pull request

Apr 7, 2026

…H-137584) (#148176)

Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

hugovk added a commit that referenced this pull request

Apr 7, 2026

…H-137584) (#148177)

Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com

@fionn fionn deleted the no-path-injection branch

April 7, 2026 03:36

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})