ymp641070841 opened a new issue, #21284: URL: https://github.com/apache/echarts/issues/21284
### Version e.g. 5.2.2 ### Link to Minimal Reproduction https://codesandbox.io/p/sandbox/7dhzzt?file=%2Findex.js%3A14%2C5 ### Steps to Reproduce 1. Hover over the chart elements. 2. The tooltip will execute the injected script. ### Current Behavior - No built-in XSS sanitization in current versions - Missing security warnings in official documentation ### Expected Behavior 1. Implement automatic HTML escaping in `formatter` output 2. Add security notices to: - `tooltip.formatter` API documentation - Security Best Practices section 3. Consider adding a `sanitize` option to `tooltip` configuration ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
