Skip to content

posibility of a 2.3.2 release with less strict d3-interpolate version dependency  #5886

Closed
@evansrobert

Description

@evansrobert

Hi, @archmoj,

Issue Description

I noticed that a vulnerability is introduced in plotly.js@2.3.1:
Vulnerability SNYK-JS-D3COLOR-1076592 affects package d3-color (versions:<3.0.0): https://snyk.io/vuln/SNYK-JS-D3COLOR-1076592
The above vulnerable package is referenced by plotly.js@2.3.1 via:
plotly.js@2.3.1 ➔ d3-interpolate@1.4.0 ➔ d3-color@1.4.1

Since plotly.js@2.3.1 (10,096 downloads per week) is referenced by 38 downstream projects (e.g., jupyterlab-plotly 5.1.0 (latest version), @interpretml/interpret-inline 0.2.6 (latest version), @deephaven/code-studio 0.2.1 (latest version), @intermix-dashboard/victory 0.7.0 (latest version), @deephaven/chart 0.2.1 (latest version)), the vulnerability SNYK-JS-D3COLOR-1076592 can be propagated into these downstream projects and expose security threats to them via the following package dependency paths:
(1)jupyterlab-plotly@5.1.0 ➔ plotly.js@2.3.1 ➔ d3-interpolate@1.4.0 ➔ d3-color@1.4.1
(2)@interpretml/interpret-inline@0.2.6 ➔ plotly.js@2.3.1 ➔ d3-interpolate@1.4.0 ➔ d3-color@1.4.1
......

If plotly.js@2.3.* removes the vulnerable package from the above version, then its fixed version can help downstream users decrease their pain.

Given the large number of downstream users, could you help update your package to remove the vulnerability from plotly.js@2.3.1 ?

Fixing suggestions

In plotly.js@2.3.2, maybe you can kindly try to perform the following upgrade :
d3-interpolate ^1.4.0 ➔ ^3.0.0;

Note:
d3-interpolate@3.0.0(>=3.0.0) directly depends on d3-color@3.0.1 which has fixed the vulnerability SNYK-JS-D3COLOR-1076592.
Of course, you are welcome to share other ways to resolve the issue.

Thank you for your attention to this issue.

Best regards,
^_^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions