CVE-2025-69993 Details
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.
A Cross-Site Scripting (XSS) vulnerability has been identified in Leaflet versions through 1.9.4. The issue arises in the bindPopup() method, which processes user input as raw HTML without proper sanitization. This flaw enables attackers to inject and execute arbitrary JavaScript in the context of the victim's browser session. The vulnerability is triggered when applications pass user-controlled data to bindPopup(), a common practice in web mapping applications that allow user annotations on map markers.
Users are advised to sanitize all user input before passing it to the bindPopup() or bindTooltip() methods. This can be done using libraries like DOMPurify or by escaping HTML entities. Leaflet maintainers are encouraged to change the default behavior of bindPopup() to render content as plain text, require an explicit opt-in for HTML rendering, and implement built-in sanitization when HTML mode is enabled.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/PierfrancescoConti/leaflet-cve-2025-69993/blob/main/ADVISORY.md | [email protected] | ExploitThird Party Advisory |
| https://leafletjs.com/ | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| leafletjs leaflet | <= 1.9.4 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | CVE Modified | [email protected] |
| Apr 20, 2026 | Initial Analysis | [email protected] |
| Apr 14, 2026 | CVE Modified | CISA-ADP |
| Apr 14, 2026 | New CVE Received | [email protected] |