Description
Leaflet versions up to and including 1.9.4 are vulnerable to Cross-Site Scripting (XSS) via the bindPopup() method. This method renders user-supplied input as raw HTML without sanitization, allowing attackers to inject arbitrary JavaScript code through event handler attributes (e.g., <img src=x onerror="alert('XSS')">). When a victim views an affected map popup, the malicious script executes in the context of the victim's browser session.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | leaflet | No fix yet | — |
| Debian 13 | leaflet | No fix yet | — |
| Debian 12 | leaflet | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | leaflet | No fix yet | — |
| Ubuntu 26.04 LTS | leaflet | No fix yet | — |
| Ubuntu 25.10 | leaflet | No fix yet | — |
| Ubuntu 24.04 LTS | leaflet | No fix yet | — |
| Ubuntu 22.04 LTS | leaflet | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | leaflet | No fix yet | — |
| Ubuntu 18.04 LTS | leaflet | No fix yet | — |
| Ubuntu 16.04 LTS | leaflet | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
PierfrancescoConti/leaflet-cve-2025-69993 ★ 0 · Apr 14, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.