Prevent XSS in clickmap annotation legend
fix(security): prevent XSS in clickmap annotation legend (#11089)
Prevent XSS in clickmap annotation legende09872-fix-prevent-xss-in-clickmap-annotation-legend-cve-2026-32118fixprevent xss clickmap annotation legend security
Committed by kojiromike
commit message
fix(security): prevent XSS in clickmap annotation legend (#11089)
## Summary
Forward-port of the security fix from the 8.0.0.1 patch to `master`.
- Escape annotation text before inserting into the clickmap legend to
prevent stored XSS
Ref: GHSA-55qj-x8wh-m4rm /
[CVE-2026-32118](https://nvd.nist.gov/vuln/detail/CVE-2026-32118)
## Test plan
- [ ] Verify clickmap annotations with special characters render
correctly
- [ ] Confirm XSS payloads in annotation text are escaped in the legendEditor assessment
This commit patches CVE-2026-32118. The subject states both the threat and the surface—'fix(security): prevent XSS in clickmap annotation legend'—so the change is legible without opening the diff. The body adds context a reader cannot infer: this is a forward-port of the 8.0.0.1 security patch to master, and escaping annotation text stops stored XSS in the legend. A GHSA plus NVD link sits under a Ref footer, and a test plan lists the render and escape checks. Both checkboxes remain unticked, which slightly undercuts the evidence, and 'security' is a broad house-style scope. Still a solid, publishable security-fix example.