Skip to content

Conversation

@Mister-Hope
Copy link
Member

BREAKING CHANGES: echart variables in scripts are changed, script blocks MUST be manually allowed

BREAKING CHANGES: echart variables in scripts are changed, script blocks MUST be manually allowed
@Mister-Hope
Copy link
Member Author

@pengzhanbo RFC here, I believe this is a necessary change, as most maintainers may not realize that certain JS code blocks from chart containers will be executed in browser, especially these functions are default enabled via certain templates.

We add 2 UPPER_CASE options for this and ensure only scripts from a whitelist can be run in site.

Copilot finished reviewing on behalf of Mister-Hope November 24, 2025 08:35

This comment was marked as outdated.

This comment was marked as outdated.

@coveralls
Copy link

coveralls commented Nov 24, 2025

Pull Request Test Coverage Report for Build 19629147442

Details

  • 31 of 31 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.5%) to 63.049%

Totals Coverage Status
Change from base Build 19624456671: 0.5%
Covered Lines: 1526
Relevant Lines: 2221

💛 - Coveralls

@Mister-Hope Mister-Hope changed the title feat(plugin-markdown-chart): avoid XSS attack feat(plugin-markdown-chart): avoid potential XSS attack Nov 24, 2025
@Mister-Hope Mister-Hope changed the title feat(plugin-markdown-chart): avoid potential XSS attack feat(plugin-markdown-chart)!: avoid potential XSS attack Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants