Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
6.1

Leaflet: Malicious code injected through map popup

CVE-2025-69993
Summary

Leaflet versions 1.9.4 and below allow attackers to inject malicious code into map popups. This can happen when a user views a popup with malicious content, which can execute scripts in the user's browser. To fix, update to a newer version of Leaflet.

Original title
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, allowin...
Original 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.
nvd CVSS3.1 6.1
Vulnerability type
CWE-79 Cross-site Scripting (XSS)
Published: 14 Apr 2026 · Updated: 15 Apr 2026 · First seen: 14 Apr 2026