CVE-2026-50873
Received Received - Intake
BaseFortify

Publication date: 2026-06-15

Last updated on: 2026-06-15

Assigner: MITRE

Description
An arbitrary file upload vulnerability in the attachment handling component of flatnotes v5.5.4 allows attackers to execute arbitrary code via uploading a crafted HTML or SVG file.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-15
Last Modified
2026-06-15
Generated
2026-06-16
AI Q&A
2026-06-15
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
flatnotes flatnotes 5.5.4
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-50873 is an arbitrary file upload vulnerability in flatnotes version 5.5.4. It allows authenticated users with upload privileges to upload files with active web content extensions such as .html or .svg. The application does not restrict these file types, and the uploaded files are served from the same origin with executable content types like text/html or image/svg+xml.

When a user opens such an uploaded attachment, the embedded scripts execute within the browser security boundary of the flatnotes origin as the viewing user. This enables stored same-origin script execution, effectively allowing attackers to run arbitrary code in the context of the application.

Impact Analysis

This vulnerability can lead to arbitrary code execution within the context of the flatnotes application for any user who opens a maliciously crafted uploaded file. An attacker could exploit this to execute scripts that steal sensitive information, hijack user sessions, perform unauthorized actions, or spread malware.

Since the attack requires an authenticated user with upload privileges, the impact is significant in environments where users can upload attachments, potentially compromising the confidentiality, integrity, and availability of data and user accounts.

Detection Guidance

This vulnerability can be detected by checking if the flatnotes application version 5.5.4 allows authenticated users to upload files with extensions such as .html or .svg that contain active web content.

You can verify this by attempting to upload a crafted HTML or SVG file through the attachment upload feature while authenticated and observing if the file is accepted and served with executable content types.

Additionally, monitoring network traffic for uploads or downloads of files with .html or .svg extensions served from the flatnotes origin may help detect exploitation attempts.

Specific commands depend on your environment, but for example, you could use curl or wget to upload test files if the API allows, or use browser developer tools to inspect the content types of served attachments.

Mitigation Strategies

Immediate mitigation steps include restricting or disabling the upload of files with active web content extensions such as .html and .svg in the attachment handling component of flatnotes.

Ensure that uploaded files are served with safe content types that do not allow execution of scripts, or implement sanitization to remove executable content from uploaded files.

Limit upload privileges to trusted users only and monitor for any suspicious upload activity.

If possible, update or patch flatnotes to a version that addresses this vulnerability once available.

Compliance Impact

The vulnerability allows authenticated users to upload files containing executable web content, which can lead to arbitrary code execution within the context of the application. This poses a risk to the confidentiality and integrity of user data handled by the application.

Such a security flaw could potentially lead to unauthorized access or manipulation of sensitive information, thereby impacting compliance with data protection regulations like GDPR and HIPAA that require safeguarding personal and health information against unauthorized access.

However, the provided information does not explicitly detail the direct impact on compliance with these standards.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-50873. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart