Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:NCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-40262 is a high-severity Cross-site Scripting (CWE-79) vulnerability in enchant97 note-mark (named in the CVE record; NVD lists no product yet). Its CVSS base score is 8.7 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique User Execution (T1204); ranked at the 29th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
CVE-2026-40262 affects Note Mark, an open-source note-taking application, in versions 0.19.1 and prior. The vulnerability resides in the asset delivery handler, which serves uploaded files inline and determines content types via magic-byte detection. This method fails to identify text-based formats like HTML, SVG, or XHTML, resulting in these files being delivered with an empty Content-Type header, no X-Content-Type-Options: nosniff header, and an inline disposition. Browsers can thus perform content sniffing and render active content within these files. The issue is rated at CVSS 8.7 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N) and maps to CWE-79 (Cross-site Scripting) and CWE-434 (Unrestricted Upload of File with Dangerous Type).
An authenticated user with low privileges can exploit this by uploading an HTML or SVG file containing JavaScript as a note asset. When another user (the victim) navigates to the direct asset URL—potentially via a shared link or note reference—the malicious script executes in the browser under the Note Mark application's origin. This grants the script access to the victim's authenticated session cookies and the ability to perform API actions on their behalf, enabling high confidentiality and integrity impacts such as data theft, account takeover, or unauthorized modifications. Exploitation requires user interaction from the victim but is otherwise low complexity over the network with a changed scope.
The vulnerability has been addressed in Note Mark version 0.19.2. The GitHub security advisory (GHSA-9pr4-rf97-79qh), release notes for v0.19.2, and the fixing commit (6bb62842ccb956870b9bf183629eba95e326e5e3) detail the patch, which security practitioners should review for implementation specifics and apply by upgrading affected instances.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-23332
Vulnerability Data
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.…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V5.1.1V1.1.2V1.3.2
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Developer testing and evaluation can discover missing or incorrect input neutralization through targeted web-application tests.
Input validation directly enforces neutralization of untrusted data before it reaches web output generation.
Output filtering can catch or sanitize unneutralized script content before it is served to users.
Malicious-code protection at entry points blocks dangerous file types from being accepted and executed.
Least functionality restricts the file types and automatic processing capabilities the system will accept.
Mobile-code controls define, authorize, and block unacceptable uploaded code before automatic processing occurs.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Restricting execution of unauthorized software directly blocks dangerous uploaded files from running.
Secure SDLC practices directly target introduction of XSS via coding standards/testing (mostly), yet the single broad outcome leaves many specific neutralization vectors unaddressed (partial).
Hardened configuration baselines can enforce allowed file types and processing rules.
Patching and EOL replacement can remediate known XSS instances in libraries or frameworks (partial) but do nothing to enforce input neutralization in application code (none).
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Secure-coding testing and automated code-analysis tools are applied to detect improper neutralization of script-related content during web-page generation.
A.5.21 governs supplier relationships and supply chain security requirements, not the technical detection of file upload vulnerabilities in deployed code.
Training partially blocks XSS exploitation by making users less likely to click on malicious links delivering XSS payloads and by making developers more likely to add some defensive measures, but it does not stop the underlying code defect from being exploitable, consistent with the AT-2 vs CWE-79 blocks=partial calibration anchor.
Secure-coding standards, SAST scans and removal of insecure code samples together eliminate the failure to neutralize script content that produces cross-site scripting flaws.
A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25 to 8.29), so it reduces ordinary software weaknesses in delivered code the way those practices do; CWE-434 is an implementation defect in upload handling that secure coding/testing practices address, but the clause's mechanism is contractual and fallible, leaving a nameable remainder.
A.8.7 can block exploitation of CWE-434 when uploaded dangerous files contain malware that its scanning detects before use, but because it does not restrict file types itself and malware detection misses unknown or custom scripts, only a minority of instances are stopped.