dash icon indicating copy to clipboard operation
dash copied to clipboard

Selenium 4.2.0 Version Vulnerability

Open bytesofconnor opened this issue 2 years ago • 10 comments

Selenium Version Vulnerability: selenium>=3.141.0,<=4.2.0

using dash 2.14.2

Describe the bug

We are using Synk to scan the dependencies of our project, which is using the latest version of dash. The Synk scan is showing these vulnerabilities (Snyk: CVSS 7.5 NVD: CVSS 7.5), as a result of the selenium version being kept below 4.2.0 here.

Expected behavior

We expect there not to be open high vulnerabilities in the dash application - although they are only exposed through testing.

A suggestion is that this dependency on selenium is either upgraded, or removed from the client-facing installation.

bytesofconnor avatar Dec 28 '23 18:12 bytesofconnor

I am also hit by this upper boundary on the selenium version. Is there a particular reason for this?

tscheburaschka avatar Jun 18 '24 08:06 tscheburaschka

cc @mike-sol

gvwilson avatar Jul 26 '24 13:07 gvwilson

This is still an issue 2 years later in Dash 3.2.0. Can someone at least explain why the current version of Dash is pinned to a 3 year old version of Selenium? Besides the security issues, this version of Selenium is using deprecated features from urllib3 and throws the following warnings repeatedly whenever I run my tests:

.../lib/python3.13/site-packages/selenium/webdriver/remote/remote_connection.py:391: DeprecationWarning:

HTTPResponse.getheader() is deprecated and will be removed in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, default).

jblang avatar Oct 08 '25 23:10 jblang

@T4rk1n please have a look and let me know how disruptive an update would be.

gvwilson avatar Oct 09 '25 13:10 gvwilson

The selenium lock is mostly for our own tests and old percy support, could unlock for the extra dep but installed locked in the ci.

T4rk1n avatar Oct 09 '25 17:10 T4rk1n

Thanks @T4rk1n - @jblang would you like to submit a PR for us to review?

gvwilson avatar Oct 10 '25 12:10 gvwilson

I can take a crack at it next week.

jblang avatar Oct 10 '25 18:10 jblang

Will be closed by #3336

AnnMarieW avatar Nov 25 '25 20:11 AnnMarieW

Unfortunately, this is still open, the PR with work from June 2025 that was mentioned in November 2025 was closed without being merged in April 2026. The old selenium version pins a rather outdated urllib3 version that has several high vulnerabilities (several with CVSS of 8.9). Any update of timeline when a fix can be expected?

jschelbert avatar Sep 17 '26 14:09 jschelbert

@jschelbert we unpinned selenium in main last month and this should be resolved in the next dash release. Thanks for calling this out.

robertclaus avatar Sep 17 '26 19:09 robertclaus