Skip to content

Commit 6066221

Browse files
committed
gh-137586: Add NEWS entries for MacOSX webbrowser change
1 parent 7781033 commit 6066221

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add :class:`MacOSX` to :mod:`webbrowser` for macOS, which opens URLs via
2+
``/usr/bin/open`` instead of piping AppleScript to ``osascript``.
3+
Deprecate :class:`MacOSXOSAScript` in favour of :class:`MacOSX`.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Fix a PATH-injection vulnerability in :mod:`webbrowser` on macOS where
2+
``osascript`` was invoked without an absolute path. The new :class:`MacOSX`
3+
class uses ``/usr/bin/open`` directly, eliminating the dependency on
4+
``osascript`` entirely.

0 commit comments

Comments
 (0)