CVE-2016-1000240 — c3
Fix: c3js/c3#1675CVE-2016-1000240 is a security vulnerability in c3. A fix is available for c3 — see the affected versions and patch details below.
Cross-Site Scripting in c3
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
c3npmDescription
Affected versions of c3 are vulnerable to cross-site scripting via improper sanitization of HTML in rendered tooltips.
Recommendation
Update to 0.4.11 or later.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | c3 | all versions | 0.4.11npm install c3@0.4.11 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for c3, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update c3 to 0.4.11 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2016-1000240 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is CVE-2016-1000240 in your dependencies?
Find it across npm, including transitive dependencies.