Skip to content

Fix CVE-2023-46308: remove vulnerable plotly.js 1.58.5#7040

Open
arijitroy003 wants to merge 1 commit into
duckdb:mainfrom
arijitroy003:security/upgrade-plotly-js
Open

Fix CVE-2023-46308: remove vulnerable plotly.js 1.58.5#7040
arijitroy003 wants to merge 1 commit into
duckdb:mainfrom
arijitroy003:security/upgrade-plotly-js

Conversation

@arijitroy003

Copy link
Copy Markdown
Contributor

Summary

  • CVE-2023-46308: js/plotly-1.58.5.min.js is vulnerable to prototype pollution via crafted plot config or attributes
  • The repo already ships js/plotly-cartesian-3.0.1.min.js (used by the sorting blog post), which is not affected
  • Switched the one remaining consumer (_posts/2024-06-26-benchmarks-over-time.md) to use the existing plotly-cartesian-3.0.1.min.js bundle
  • Updated Plotly.plot() calls to Plotly.newPlot() (the v1 API was removed in Plotly.js v2)
  • Deleted the vulnerable js/plotly-1.58.5.min.js

Test plan

  • Verify the benchmarks-over-time blog post renders interactive charts correctly with the cartesian bundle
  • Confirm no other pages reference plotly-1.58.5

… 3.0.1

plotly-1.58.5.min.js is affected by CVE-2023-46308 (prototype pollution
via crafted plot config or attributes). The repo already ships
plotly-cartesian-3.0.1.min.js which is not affected, so this commit
switches the one remaining consumer (benchmarks-over-time blog post) to
that bundle, updates Plotly.plot() calls to Plotly.newPlot() (the v1 API
was removed in Plotly.js v2), and deletes the vulnerable file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant