gh-137586: Open external osascript program with absolute path#137584
Conversation
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Sorry, something went wrong.
091f610 to
8700060
Compare
August 9, 2025 08:59
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Sorry, something went wrong.
|
Please open an issue first. |
Sorry, something went wrong.
|
Could you please add a news entry and also fix the osascript invocation in |
Sorry, something went wrong.
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.
e9ed37f to
00682c5
Compare
October 16, 2025 17:10
|
Yes, done. I wasn't sure if this was significant enough to warrant a news item. |
Sorry, something went wrong.
|
#146439 takes a broader approach to this issue by replacing |
Sorry, something went wrong.
|
This is one think is worthwhile backporting given not relying on $PATH for this system binary seems like a good thing security wise. |
Sorry, something went wrong.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
Ah, I guess this happened because I accepted the suggestion via the GitHub UI, which added a commit with the GitHub email address. I amended the commit to match the email address I signed the CLA with instead. |
Sorry, something went wrong.
a0c57a8
into
python:main
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>
…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>
…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>
…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>
…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>
confirming - #148173 (comment) - yup, looks like it needs the CLA as well. @fionn |
Sorry, something went wrong.
Strange! Have re-signed it. |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot PPC64LE Fedora Stable Clang Installed 3.13 (tier-3) has failed when building commit c358b89. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1429/builds/1122 Summary of the results of the build (if available): Click to see traceback logsfatal: unable to access 'https://github.com/python/cpython.git/': Failed to connect to github.com port 443 after 890 ms: Could not connect to server
chmod: cannot access 'target/': No such file or directory
make: *** No rule to make target 'distclean'. Stop. |
Sorry, something went wrong.
…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. Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
On macOS, web browsers are opened via
popencallingosascript. However, if a user has a collidingosascriptexecutable earlier in theirPATH, this may fail or cause unwanted behaviour.Depending on one's environment or level of paranoia, this may be considered a security vulnerability.