Skip to main content

flatnotes CVE-2026-50873

| EUVDEUVD-2026-36771 CRITICAL
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-06-15 mitre GHSA-wv29-ggqw-p97w
9.8
CVSS 3.1 · Vendor: mitre
Share

Severity by source

Vendor (mitre) PRIMARY
9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
8.8 HIGH

Attachment upload typically requires an authenticated session in flatnotes, so PR:L rather than PR:N; HTML/SVG upload trivially yields full app-context compromise (C/I/A:H).

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Generated
Jun 16, 2026 - 13:24 vuln.today
CVSS changed
Jun 16, 2026 - 13:22 NVD
9.8 (CRITICAL)
CVE Published
Jun 15, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

AnalysisAI

Arbitrary code execution in flatnotes v5.5.4 is achievable by uploading crafted HTML or SVG files through the attachment handling component, enabling remote attackers to run code in the context of the application. The CVSS 9.8 rating reflects network-reachable, unauthenticated exploitation with full impact on confidentiality, integrity, and availability. Publicly available exploit code exists via a referenced GitHub gist, though there is no public exploit identified as actively exploited in the CISA KEV catalog at time of analysis.

Technical ContextAI

flatnotes is a self-hosted, database-less note-taking web application that stores notes as flat Markdown files and supports file attachments. The root cause is CWE-434 (Unrestricted Upload of File with Dangerous Type): the attachment handler accepts HTML and SVG content without sufficient validation of MIME type, extension, or embedded script content. Because HTML and SVG are both script-capable formats in a browser context, serving them back from the application's origin allows attacker-controlled JavaScript to run in the user's session, and depending on how attachments are stored and rendered, the upload primitive can be chained into broader code execution. The provided CPE string is a placeholder ('n/a:n/a'), so authoritative vendor CPE data is not available for automated matching.

RemediationAI

No vendor-released patch identified at time of analysis; defenders should monitor the flatnotes GitHub repository for a release later than 5.5.4 that addresses attachment validation and upgrade as soon as one is published. As compensating controls, place flatnotes behind an authenticating reverse proxy or VPN so the upload endpoint is not reachable by unauthenticated attackers (trade-off: blocks legitimate anonymous sharing if used), enforce a strict Content-Security-Policy and 'Content-Disposition: attachment' response header on the attachment-serving path to prevent inline rendering of HTML/SVG (trade-off: legitimate inline image previews for SVG break), and front the application with a WAF or proxy rule that rejects uploads whose content sniffs as HTML or SVG regardless of extension. The public POC at https://gist.github.com/pyuysig/ab0af5b10877fb906941e05a69b202a7 should be reviewed to inform detection rules.

More in N A

View all
CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

CVE-2026-36356 CRITICAL POC
9.1 May 05

Unauthenticated remote OS command injection in MeiG Smart FORGE_SLT711 cellular gateway firmware MDM9607.LE.1.0-00110-ST

CVE-2026-31071 CRITICAL POC
9.1 May 19

Unauthenticated API access in LalanaChami Pharmacy Management System (commit 5c3d028) allows remote attackers to dump al

CVE-2025-66391 HIGH POC
8.8 Jun 17

In Citrix Cloud through 2025-11-10, an account with read-only access can trigger the beginning of a workflow for write o

CVE-2026-26740 HIGH POC
8.2 Mar 18

Giflib 5.2.2 contains a buffer overflow in the EGifGCBToExtension function that fails to validate allocated memory when

CVE-2025-60464 HIGH POC
7.8 Jun 25

Denial of service in GPAC's MP4Box multimedia tool (versions before 26.02.0) arises from a use-after-free in the gf_sei_

CVE-2026-36355 HIGH POC
7.7 May 05

Arbitrary kernel memory read/write in Realtek rtl819x Jungle SDK Wi-Fi driver allows local unprivileged attackers to acc

CVE-2025-60474 HIGH POC
7.5 Jun 24

Denial of service in GPAC's MP4Box/libgpac media importer (versions before 26.02.0) lets an attacker crash the tool by s

CVE-2026-38639 HIGH POC
7.5 Jun 26

An issue in the parse_month function (/time/strptime.rs) of relibc commit ab6a2e allows attackers to cause a Denial of S

CVE-2026-38641 HIGH POC
7.5 Jun 26

Denial of service in relibc (the Redox OS C standard library) at commit 61f42d allows attackers to crash a process by ge

CVE-2026-38637 HIGH POC
7.5 Jun 25

An issue in the pthread_rwlockattr_setpshared() function of relibc commit 61f42d allows attackers to cause a Denial of S

CVE-2026-38640 HIGH POC
7.5 Jun 25

Denial of service in relibc (the Redox OS C standard library implementation, commit 61f42d) lets attackers crash a proce

Share

CVE-2026-50873 vulnerability details – vuln.today

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