CVE-2026-45249
Apache ECharts has a cross-site scripting (XSS) vulnerability
Description
A cross-site scripting (XSS) vulnerability exists in Apache ECharts in the Lines series tooltip rendering logic.
This issue affects Apache ECharts: from before 6.1.0.
In versions prior to 6.1.0, if both Lines series and tooltip are used, and no user-specified tooltip.formatter is provided, and series.data[i].name is specified, raw HTML string series.data[i].name can be rendered through innerHTML sink into tooltip content. Although tooltip is allowed to accept user-provided raw HTML via a custom tooltip.formatter, the built-in tooltip formatters conventionally perform HTML escaping automatically. This case breaks that convention and may unexpectedly lead to script execution when tooltips are displayed.
Users are recommended to upgrade to version 6.1.0 if using the Lines series in this way, which fixes the issue.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » echartsvia npm echarts | < 6.1.0 | 6.1.0 |
| org.webjars » echartsvia npm echarts | < 6.1.0 | 6.1.0 |
| org.webjars.npm » echartsvia npm echarts | < 6.1.0 | 6.1.0 |
Blast radius
31% of the dependent artifacts (89) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 357 |
| 2 hops | 355 |
| 3 hops | 5,982 |
| 4 hops | 7,601 |
| 5 hops | 1,712 |
| 6 hops | 252 |
Most used dependents
- io.quarkus » quarkus-vertx-http-deployment192 usages
- io.quarkus » quarkus-resteasy-deployment129 usages
- io.quarkus » quarkus-rest-deployment111 usages
- io.quarkus » quarkus-smallrye-health-deployment84 usages
- io.quarkus » quarkus-rest-jackson-deployment76 usages
- io.quarkiverse.langchain4j » quarkus-langchain4j-core-deployment64 usages
- io.quarkus » quarkus-smallrye-openapi-deployment59 usages
- io.quarkus » quarkus-resteasy-jackson-deployment55 usages
- io.quarkus » quarkus-micrometer-deployment53 usages
- io.quarkus » quarkus-undertow-deployment51 usages
- io.quarkus » quarkus-resteasy-reactive-deployment51 usages
- io.quarkus » quarkus-reactive-routes-deployment43 usages
- io.quarkus » quarkus-oidc-deployment35 usages
- io.quarkus » quarkus-grpc-deployment33 usages
- io.quarkus » quarkus-micrometer-registry-prometheus-deployment24 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2026-45249 | nvd.nist.gov |
| Package | apache/echarts | github.com |
| Web | apache/echarts pull request #21608 | github.com |
| Web | apache/echarts commit 1e39b00 | github.com |
| Web | en/option.html | echarts.apache.org |
| Web | handbook/en/best-practices/security | echarts.apache.org |
| Web | thread/1g6xk7gd9vg1c6zyqqt2lnko10zomc3o | lists.apache.org |
| Web | lists/oss-security/2026/05/23/4 | openwall.com |
