{
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09"
      },
      "title": "XSS in Lines series tooltip rendering",
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
              "lang": "en",
              "cweId": "CWE-79",
              "type": "CWE"
            }
          ]
        }
      ],
      "source": {
        "discovery": "EXTERNAL"
      },
      "affected": [
        {
          "vendor": "Apache Software Foundation",
          "product": "Apache ECharts",
          "collectionURL": "https://www.npmjs.com/package/",
          "packageName": "echarts",
          "versions": [
            {
              "status": "affected",
              "version": "0",
              "lessThan": "6.1.0",
              "versionType": "semver"
            }
          ],
          "defaultStatus": "unaffected"
        }
      ],
      "descriptions": [
        {
          "value": "A cross-site scripting (XSS) vulnerability exists in Apache ECharts in the Lines series tooltip rendering logic.\n\n\n\n\nThis issue affects Apache ECharts: from before 6.1.0.\n\nIn versions prior to 6.1.0, if both Lines series\u00a0and 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\u00a0rendered 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\u00a0may unexpectedly lead to script execution when tooltips are displayed.\n\n\nUsers are recommended to upgrade to version 6.1.0 if using the Lines series in this way, which fixes the issue.",
          "lang": "en",
          "supportingMedia": [
            {
              "type": "text/html",
              "base64": false,
              "value": "<p>A cross-site scripting (XSS) vulnerability exists in Apache ECharts in the <b>Lines</b> series tooltip rendering logic.</p><p><br>\n\n<span style=\"background-color: rgb(255, 255, 255);\">This issue affects Apache ECharts: from before 6.1.0.</span></p><p>In versions prior to 6.1.0, if both Lines series&nbsp;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&nbsp;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&nbsp;may unexpectedly lead to script execution when tooltips are displayed.</p><p><br>Users are recommended to upgrade to version 6.1.0 if using the Lines series in this way, which fixes the issue.</p>"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/apache/echarts/pull/21608",
          "tags": [
            "patch",
            "technical-description"
          ]
        },
        {
          "url": "https://echarts.apache.org/en/option.html#series-lines"
        },
        {
          "url": "https://echarts.apache.org/handbook/en/best-practices/security/#passing_raw_html_safely",
          "tags": [
            "technical-description"
          ]
        },
        {
          "url": "https://lists.apache.org/thread/1g6xk7gd9vg1c6zyqqt2lnko10zomc3o",
          "tags": [
            "vendor-advisory"
          ]
        }
      ],
      "metrics": [
        {
          "other": {
            "type": "Textual description of severity",
            "content": {
              "text": "important"
            }
          }
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Lakshmikanthan K",
          "type": "finder"
        }
      ],
      "x_generator": {
        "engine": "Vulnogram 0.2.0"
      }
    }
  },
  "cveMetadata": {
    "cveId": "CVE-2026-45249",
    "assignerOrgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09",
    "serial": 1,
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}