Intel

AIKIDO-2026-411291

drupal/leaflet is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-107265Published Oct 8, 2026
October 8, 2026

56

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the drupal/leaflet library to the patch version.

Who does this affect?

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.

Versions

0.0.1 - 10.4.12

Fixed in 10.4.13

Background info

drupal/leaflet is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 10.4.12.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea