CVE-2023-46308 — Vulnerability in plotly.js — CVE Details
CRITICAL
plotly.js prototype pollution vulnerability
Published January 3, 2024Updated December 26, 2025Source: osv
Summary
In Plotly plotly.js before 2.25.2, plot API calls have a risk of __proto__ being polluted in expandObjectPaths or nestedProperty.
Advisory Timeline
- First published January 3, 2024 (1013 days ago).
- Last revised December 26, 2025 — 723 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm
Update plotly.js to 2.25.2 or laternpm install plotly.js@2.25.2
Composer
Update plotly/plotly.js to 2.25.2 or latercomposer require "plotly/plotly.js:^2.25.2"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 2 ecosystems: npm (1), packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| plotly.js | npm | All versions | 2.25.2 |
| plotly/plotly.js | packagist | v1.23.2, v1.24.0, v1.24.1, v1.24.2 (+176 more) | 2.25.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1321Prototype PollutionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-46308ADVISORY
- https://github.com/plotly/plotly.R/issues/2463WEB
- https://github.com/plotly/plotly.js/commit/02498404c8ad7a3395191e65694fb142a37b0fe9WEB
- https://github.com/plotly/plotly.js/commit/5efd2a1f07a418b230a5626fc6c1c7929c47949dWEB
- https://github.com/plotly/plotly.jsPACKAGE
- https://github.com/plotly/plotly.js/releases/tag/v2.25.2WEB
- https://plotly.com/javascriptWEB
Frequently Asked Questions
- What is CVE-2023-46308?
- plotly.js prototype pollution vulnerability This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2023-46308?
- CVE-2023-46308 affects plotly.js and plotly/plotly.js. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-46308 and 200,000+ other known vulnerabilities.
Severity & Exploitability
CVSS Score
9.8
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
GHSA-wjc4-73q6-gv3m
Related CVEs
- CVE-2026-107845CRITICAL
Contao: Cross-site scripting in the comments bundle
- CVE-2026-108261CRITICAL
TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies