Skip to main content

MyEMS CVE-2026-15321

| EUVDEUVD-2026-42780 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-07-10 VulDB GHSA-4qw7-r7cw-fwf5
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Obtain admin credentials via phishing or reuse
  2. Delivery
    Authenticate to MyEMS Admin Backend
  3. Exploit
    Submit crafted SVG payload via on_post endpoint
  4. Execution
    Payload stored server-side in SVG data field
  5. Persist
    Second admin views affected SVG content
  6. Impact
    Injected JavaScript executes in victim browser

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

Exploitation requires the attacker to hold a high-privileged (administrator-level) account on the MyEMS Admin Backend - the CVSS PR:H metric confirms this. A second condition is that another administrator (UI:P) must subsequently view the injected SVG content within the admin interface for the XSS payload to execute. Non-admin user accounts are not sufficient to inject the payload. The vulnerability is specific to the SVG data handling endpoint (myems-api/core/svg.py, on_post function) and is only reachable via the Admin Backend, not the end-user-facing interface. Limiting factors: exploitation cannot be triggered remotely by an unauthenticated attacker; it requires prior compromise or misuse of an admin account, making this a post-authentication, insider-threat-class vulnerability. Default configurations where admin access is restricted to trusted personnel significantly reduce realistic risk.

Impact

The CVSS 4.0 base score of 1.9 (vector: AV:N/AC:L/AT:N/PR:H/UI:P) accurately reflects the constrained exploitability of this issue. The PR:H metric confirms that a threat actor must already hold administrator credentials before exploiting this flaw - significantly limiting the attack surface to insider threats, compromised admin accounts, or privilege-escalation chains. UI:P further requires that a second administrator view the injected content, adding another friction point. Impact is bounded to VI:L (low integrity on the vulnerable system), with no confidentiality or availability effect at the system level in the 4.0 model. The E:P threat metric acknowledges the publicly available exploit (GitHub issue #412), slightly elevating the real-world concern above a purely theoretical flaw. No CISA KEV listing exists, and no EPSS data was provided, but the high-privilege prerequisite and the niche deployment footprint of an energy management system make broad opportunistic exploitation implausible. This is best categorized as a low-priority, low-urgency vulnerability for most organizations, warranting patching on a normal maintenance cycle rather than emergency response.

Exploit ScenarioDerived

An authenticated administrator with access to the MyEMS Admin Backend submits a crafted SVG payload containing embedded JavaScript via the new_values['data'] parameter of the SVG API endpoint (myems-api/core/svg.py). When a second administrator navigates to the admin interface and views the stored SVG content, the injected script executes in their browser session, potentially enabling session hijacking, credential theft, or unauthorized actions performed in the context of the victim administrator. A public proof-of-concept demonstrating this behavior is documented at https://github.com/MyEMS/myems/issues/412.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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 – Jul 10, 2026

Stored cross-site scripting in MyEMS up to 6.4.0 allows a high-privileged attacker to inject malicious script via the new_values['data'] argument in the on_post function of myems-api/core/svg.py within the Admin Backend, which then executes in a victim administrator's browser upon viewing the affected SVG content. The CVSS 4.0 score of 1.9 reflects the limited real-world impact: exploitation requires existing administrative access and victim interaction, constraining this to a privilege-abuse scenario rather than an external intrusion vector. A public proof-of-concept exists via GitHub issue #412, and a vendor-released patch is available in version 6.5.0.

RemediationAI

Upgrade MyEMS to version 6.5.0, which contains the official fix applied in commit 4a97edfbd786c779d0322054833b21ddf54d5b06. The release is available at https://github.com/MyEMS/myems/releases/tag/v6.5.0 and the specific patch diff can be reviewed at https://github.com/MyEMS/myems/commit/4a97edfbd786c779d0322054833b21ddf54d5b06. If an immediate upgrade is not possible, restrict access to the Admin Backend to a minimal set of trusted administrators using network-layer controls (firewall rules or VPN enforcement), reducing the pool of accounts that could be abused to inject payloads. Additionally, enforce Content Security Policy (CSP) headers on the admin interface to limit the impact of any injected scripts by blocking inline script execution - note that this is a compensating control, not a fix, and may break legitimate admin UI functionality if not carefully tuned. The GitHub issue (#412) remains open per the reporter despite the vendor fix, so operators should verify patch application by confirming the running version is 6.5.0 or later.

Affected VersionsENISA

MyEMS 6.4.0
MyEMS 6.1
MyEMS 6.3
MyEMS 6.2
MyEMS 6.0

Affected Packages

euvd myems no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

MyEMS is an open-source energy management system (EMS) built on a Python-based REST API backend. The vulnerability resides in the on_post method of myems-api/core/svg.py, which handles SVG data submitted through the Admin Backend interface. SVG is an XML-based vector format that natively supports embedded JavaScript and event handlers; insufficient sanitization of user-supplied SVG content (the new_values['data'] parameter) before storage or rendering constitutes a classic CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting) flaw. The affected CPE is cpe:2.3:a:n/a:myems:*:*:*:*:*:*:*:*, covering all MyEMS releases through 6.4.0. Because SVG payloads are interpreted by the browser's XML/HTML renderer, malicious content stored via this endpoint can execute arbitrary JavaScript in the context of any administrator who subsequently views the injected content.

Know when Myems gets its next vulnerability

  • 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 (VulDB) PRIMARY 1.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
vuln.today AI 4.8 MEDIUM

Admin credentials required (PR:H), victim must view content (UI:R), XSS crosses into victim browser session (S:C) with low confidentiality and integrity impact.

3.1 AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Jul 10, 2026 - 04:22 NVD
MEDIUM LOW
CVSS changed
Jul 10, 2026 - 04:22 NVD
4.8 (MEDIUM) 1.9 (LOW)

DescriptionCVE.org

A vulnerability was found in MyEMS up to 6.4.0. The affected element is the function on_post of the file myems-api/core/svg.py of the component Admin Backend. The manipulation of the argument new_values['data'] results in cross site scripting. The attack can be launched remotely. The exploit has been made public and could be used. Upgrading to version 6.5.0 is sufficient to fix this issue. The patch is identified as 4a97edfbd786c779d0322054833b21ddf54d5b06. It is suggested to upgrade the affected component. The issue report remains open even though there is an official fix for it.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Low
open-source energy management system, niche industrial/facility deployment
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
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.

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