drupal/leaflet is vulnerable to Cross-Site Scripting (XSS)
56
CVE Score
Medium
Cross-Site Scripting (XSS)
The Leaflet field formatter builds map popup and tooltip HTML in tokenResolvedContent() and passes it to Leaflet bindPopup() and bindTooltip(), which inject that string as HTML. Before 10.4.13, token replacement was run through htmlspecialchars_decode(), and an empty popup or tooltip fell back to the raw entity label. The Leaflet Views tooltip path also decoded the selected field with Html::decodeEntities(). A user who can create or edit content shown on a Leaflet map can store markup in a title or field that runs in the browser of anyone who opens the map. The fix keeps the escaping applied during token replacement, escapes the entity-label fallback with Html::escape(), and stops decoding Views tooltip fields.
Upgrade the drupal/leaflet library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and a Leaflet map popup or tooltip displays content titles or other user-controlled fields.
0.0.1 - 10.4.12
Fixed in 10.4.13drupal/leaflet is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 10.4.12.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.