gh-137586: Open external osascript program with absolute path#137584
gh-137586: Open external osascript program with absolute path#137584gpshead merged 5 commits intopython:mainfrom
Conversation
|
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 |
091f610 to
8700060
Compare
|
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 |
|
Please open an issue first. |
|
Could you please add a news entry and also fix the osascript invocation in |
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
|
Yes, done. I wasn't sure if this was significant enough to warrant a news item. |
|
#146439 takes a broader approach to this issue by replacing |
|
This is one think is worthwhile backporting given not relying on $PATH for this system binary seems like a good thing security wise. |
Misc/NEWS.d/next/macOS/2025-10-17-01-07-03.gh-issue-137586.kVzxvp.rst
Outdated
Show resolved
Hide resolved
|
@fionn Please could you sign the CLA again? |
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. |
|
Thanks, yes, that'll be it. But you'll still need to add the GH account email to the CLA when the first backport PR is opened. |
|
GH-148173 is a backport of this pull request to the 3.14 branch. |
…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>
|
GH-148174 is a backport of this pull request to the 3.13 branch. |
…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>
|
GH-148175 is a backport of this pull request to the 3.12 branch. |
…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>
|
GH-148176 is a backport of this pull request to the 3.11 branch. |
…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>
|
GH-148177 is a backport of this pull request to the 3.10 branch. |
confirming - #148173 (comment) - yup, looks like it needs the CLA as well. @fionn |
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.