CVE-2026-30586
Cross Site Scripting in usememos Memos v0.26.0
Publication date: 2026-06-02
Last updated on: 2026-06-02
Assigner: MITRE
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| usememos | memos | to 0.26.0 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2026-30586 is a Cross Site Scripting (XSS) vulnerability in usememos Memos version 0.26.0 and earlier. It allows an authenticated attacker to inject malicious HTML content into memos by exploiting weaknesses in the Markdown renderer's sanitization schema.
Specifically, the vulnerability arises because the sanitization schema permits style attributes on span elements and allows unsandboxed iframe embeds. An attacker can craft a memo containing a span with CSS positioning and an iframe pointing to a phishing site. When a victim views this memo, the malicious content can overlay the entire application viewport, mimicking the legitimate interface and potentially tricking users into entering sensitive information.
The browser's address bar remains unchanged during the attack, making the spoofed login prompts appear authentic and increasing the risk of credential theft.
How can this vulnerability impact me? :
This vulnerability can lead to credential theft by tricking users into entering their login information into a fake interface created by the attacker.
Because the malicious content can cover the entire application viewport and mimic the legitimate interface without changing the browser's address bar, users may be deceived into providing sensitive information.
The attack requires victim interaction, specifically opening the malicious memo, but it is especially dangerous in shared deployments where multiple users have access to memos.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
Detection of CVE-2026-30586 involves identifying malicious memos containing crafted HTML elements such as span tags with CSS positioning and iframes pointing to phishing or external sites.
Since the vulnerability exploits the Markdown renderer's sanitization schema allowing unsafe iframe embeds and styled spans, monitoring memo content for unusual HTML or iframe usage is key.
Commands or methods to detect this could include searching memo database entries or files for suspicious HTML patterns, such as:
- Using grep or similar tools to find memos containing <iframe> tags or <span> tags with style attributes, e.g., `grep -i '<iframe' memos_data/*` or `grep -i '<span style=' memos_data/*`.
- Reviewing logs or application data for memo content that includes CSS positioning styles or iframe sources that are not HTTPS or point to suspicious domains.
Additionally, manual inspection or automated scanning of memo content for HTML injection patterns can help detect exploitation attempts.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include restricting or sanitizing memo content to prevent unsafe HTML elements and attributes, especially iframe embeds and styled spans.
Specifically, updating or patching the SANITIZE_SCHEMA to disallow style attributes on span elements and to sandbox or restrict iframe embeds to trusted sources only is critical.
Other steps include:
- Limiting memo creation and editing permissions to trusted users to reduce the risk of malicious content injection.
- Educating users to avoid opening suspicious memos or clicking on unexpected content within memos.
- Monitoring and removing any memos that contain suspicious HTML or iframe content.
Ultimately, applying any official patches or updates from the memos project that address this sanitization issue is recommended once available.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The CVE-2026-30586 vulnerability allows an attacker to perform cross-site scripting (XSS) attacks that can lead to credential theft by spoofing the user interface and tricking users into entering sensitive information.
Such unauthorized access to sensitive information can compromise data confidentiality and integrity, which are critical requirements under common standards and regulations like GDPR and HIPAA.
Therefore, this vulnerability could lead to non-compliance with these regulations due to potential exposure of personal or protected health information resulting from credential theft and unauthorized data access.