CVE-2026-40262 Details
Description
Note Mark is an open-source note-taking application. In versions 0.19.1 and prior, the asset delivery handler serves uploaded files inline and relies on magic-byte detection for content type, which does not identify text-based formats such as HTML, SVG, or XHTML. These files are served with an empty Content-Type, no X-Content-Type-Options: nosniff header, and inline disposition, allowing browsers to sniff and render active content. An authenticated user can upload an HTML or SVG file containing JavaScript as a note asset, and when a victim navigates to the asset URL, the script executes under the application's origin with access to the victim's authenticated session and API actions. This issue has been fixed in version 0.19.2.
A stored cross-site scripting vulnerability has been identified in Note Mark, an open-source note-taking application, in versions through 0.19.1. The issue arises because the asset delivery handler serves uploaded files inline and relies on magic-byte detection for content type. This method fails to recognize text-based formats such as HTML, SVG, or XHTML, resulting in these files being delivered with an empty Content-Type, no X-Content-Type-Options: nosniff header, and inline disposition. Consequently, browsers can sniff and execute active content. An authenticated user can exploit this by uploading an HTML or SVG file containing JavaScript as a note asset. When a victim accesses the asset URL, the script executes under the application's origin, with access to the victim's authenticated session and API actions.
Users can update to Note Mark version 0.19.2, which addresses this vulnerability by implementing proper content type handling and removing the liquid parser from the render.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 17, 2026CISA-ADP
Assessed Apr 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/enchant97/note-mark/commit/6bb62842ccb956870b9bf183629eba95e326e5e3 | [email protected] | Source CodeVendor |
| https://github.com/enchant97/note-mark/releases/tag/v0.19.2 | [email protected] | Release NotesVendor |
| https://github.com/enchant97/note-mark/security/advisories/GHSA-9pr4-rf97-79qh | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| enchant97 note-mark | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 17, 2026 | New CVE Received | [email protected] |
Volerion