CVE-2026-131590 — Hupe13 Extension For Leaflet Map (6.1.3) — CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in hupe13 Extension for Leaflet Map extensions-leaflet-map allows Reflected XSS.This issue affects Extension for Leaflet Map: from n/a through 6.1.3.
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in hupe13 Extension for Leaflet Map extensions-leaflet-map allows Reflected XSS.This issue affects Extension for Leaflet Map: from n/a through 6.1.3.
🎯 What is this vulnerability?
Improper Neutralization of Input During Web Page Generation (CWE‑79)
The hupe13:Extension for Leaflet Map (extensions‑leaflet‑map) renders user‑supplied data directly into the HTML of the map page without any escaping or sanitization.
The flaw is a reflected XSS: a crafted request containing malicious JavaScript is reflected back in the response and executed in the victim’s browser.
Key points from the CVE data
| Item | Detail |
|---|---|
| Affected product | hupe13:Extension for Leaflet Map, versions ≤ 6.1.3 |
| CWE | 79 – Cross‑Site Scripting |
| CVSS v3.1 | 7.1 (High) – AV:N / AC:L / PR:N / UI:R / S:C / C:L / I:L / A:L |
| Authentication | None required (unauthenticated) |
| User interaction | Required (the victim must load the crafted URL) |
| Scope | Changed – the XSS can affect the entire web application that hosts the extension, not just the map page |
The vulnerability exists because the extension’s template engine (likely a simple PHP/JavaScript mix) inserts the value of a query‑string or form parameter directly into the page without HTML‑encoding it. No server‑side validation or output‑encoding is performed.
⚡ Attack Chain
Note: The exact endpoint and parameter names are not published in the CVE. The following example uses a plausible URL (/leaflet-map) and a generic parameter (layer) that is commonly used by map extensions. If your environment uses a different path or parameter, substitute accordingly.
1. Discovery & Reconnaissance
| Step | Technique | Tools / Commands |
|---|---|---|
| Identify the extension | Scan for known files or headers that reveal the extension version. | curl -I https://target.com/leaflet-map → look for X-Extension-Version: 6.1.3 or similar. |
| Confirm vulnerability | Send a request with a benign payload and inspect the response for echoing. | curl "https://target.com/leaflet-map?layer=test" → check if test appears in the HTML. |
2. Exploitation
| Step | Action | Example |
|---|---|---|
| Craft malicious payload | Insert a <script> tag that will run in the victim’s browser. | layer=<script>alert('XSS')</script> |
| Send request | Use curl or a browser to load the URL. | ``bash\ncurl "https://target.com/leaflet-map?layer=<script>alert('XSS')</script>" -o /dev/null -s -w "%{http_code}\n"\n`` |
| Verify execution | The victim’s browser will execute the script when the page loads. | The alert dialog appears. |
Illustrative example – the exact query string may differ. The key is that the payload is reflected in the HTML without escaping.
3. Post‑Exploitation
| Goal | What an attacker can achieve |
|---|---|
| Session hijacking | Capture the victim’s session cookie (document.cookie) and use it to impersonate the user. |
| Phishing / credential theft | Inject a fake login form that posts to the attacker’s server. |
| Drive‑by download | Serve a malicious JavaScript that downloads malware. |
| Privilege escalation | If the map page has admin controls, the attacker can manipulate them via the injected script. |
Because the vulnerability is reflected, the attacker cannot persist a payload on the server; it must be delivered each time the victim visits the crafted URL. However, the impact can be significant if the target is a public site with many users.
🌍 Real World Impact
| Impact | CVSS Component | Explanation |
|---|---|---|
| Confidentiality (C:L) | The attacker can read the victim’s session cookie or other data visible to the browser. | |
| Integrity (I:L) | The attacker can modify the DOM, inject malicious content, or alter user actions. | |
| Availability (A:L) | The attacker can cause a denial of service by flooding the site with malicious requests, but this is not a primary vector. |
Practical consequences
- Any user who clicks a malicious link (e.g., in an email, social media, or a compromised site) can have their session hijacked or be tricked into downloading malware.
- If the map page is part of
FOFA Query