ACM-44186: CVE-2026-76154: Sanitize Geomap attribution to prevent stored XSS #689
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 217 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.322
Real PR Conversation Timeline
1 comments
"Review active on #689"
general
weight: 0.35
coleenquadros
CVE-2026-76154: Sanitize Geomap attribution to prevent stored XSS
Summary
Cherry-picks the Geomap panel XSS fix from upstream commit 05757e789657299d00314f8f96d49d1aca569f33 to
release-2.17.Vulnerability
The Geomap panel's MapLibre style base layer loads a map style from a URL and inserts the style's attribution field into the page without sanitizing it. A user with the Editor role can host a malicious style configuration that executes arbitrary JavaScript in the browser of anyone who views the dashboard — enabling escalation to Org Admin.
Fix
Adds an HTML sanitization layer for map attribution text using
textUtil.sanitize()from the grafana/data package:1. NEW
public/app/plugins/panel/geomap/utils/attribution.ts—guardLayerAttribution()recursively wraps all layer sources'setAttributions()to sanitize attribution before DOM insertion2. NEW
public/app/plugins/panel/geomap/utils/attribution.test.ts— Tests covering onerror handlers, script payloads, iframes, legitimate attributions, nested LayerGroups, and dynamic sources3. MODIFIED
public/app/plugins/panel/geomap/utils/layers.ts— Imports and callsguardLayerAttribution(layer)afterhandler.init()Only the 3 geomap-specific files from the upstream commit are included. Unrelated changes (CHANGELOG, go.mod/sum, OAuth connectors, plugin storage) are excluded.
---
AI-generated. Review for accuracy.
@kofibreik requested from Slack