All reports
Medium

Leaflet: Leaflet: Cross-Site Scripting (XSS) via unsanitized input in bindPopup() method

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-69993

Probability of exploitation in the next 30 days: 0.20%

FIRST EPSS · 2026-11-21

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., ). When a victim views an affected map popup, the malicious script executes in the context of the victim's browser session.

A flaw was found in Leaflet. This Cross-Site Scripting (XSS) vulnerability exists in the bindPopup() method, which fails to sanitize user-supplied input. A remote attacker can exploit this by injecting malicious JavaScript code into map popups. When a victim views an affected map, the injected script executes in their browser, potentially leading to information disclosure or other client-side attacks.