Le 10/05/2026 à 20:03, Moritz Mühlenhoff a écrit :

CVE-2026-4519[0]:
| The webbrowser.open() API would accept leading dashes in the URL
| which  could be handled as command line options for certain web
| browsers. New  behavior rejects leading dashes. Users are
| recommended to sanitize URLs  prior to passing to webbrowser.open().

If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-4519
     https://www.cve.org/CVERecord?id=CVE-2026-4519


I don't think jython is affected by this issue. In jython webbrowser.open() uses the java.awt.Desktop.browse(URI) method, and a leading dash causes an IOException:


  jshell> var uri = new URI("-foo")
  uri ==> -foo
  |  created variable uri : URI

  jshell> Desktop.getDesktop().browse(uri)
  |  Exception java.io.IOException: Failed to show URI:-foo
  |        at XDesktopPeer.launch (XDesktopPeer.java:130)
  |        at XDesktopPeer.browse (XDesktopPeer.java:114)
  |        at Desktop.browse (Desktop.java:461)
  |        at (#6:1)


Emmanuel Bourg

Reply via email to