Security Resilience

CVE-2026-40262

XSS in enchant97 note-mark

Published
17 April 2026
Modified
26 October 2026
CVSS Score v3.1 8.7
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
EPSS Score 0.0043 29th percentile
Risk Priority 60 floored blend · peak EPSS

CVSS 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

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

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1204 User Execution Execution
An adversary may rely upon specific actions by a user in order to gain execution.
T1491 Defacement Impact
Adversaries may modify visual content available internally or externally to an enterprise network, thus affecting the integrity of the original content.
T1505.003 Web Shell Persistence
Adversaries may backdoor web servers with web shells to establish persistent access to systems.
T1584.004 Server Resource Development
Adversaries may compromise third-party servers that can be used during targeting.
T1505 Server Software Component Persistence
Adversaries may abuse legitimate extensible development features of servers to establish persistent access to systems.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-51489Shared CWE-434, CWE-79
CVE-2026-76782Shared CWE-434, CWE-79
CVE-2026-67444Shared CWE-434, CWE-79
CVE-2025-61681Shared CWE-434, CWE-79
CVE-2025-2748Shared CWE-434, CWE-79
CVE-2023-4220Shared CWE-434, CWE-79
CVE-2023-50982Shared CWE-434, CWE-79
CVE-2024-34913Shared CWE-434, CWE-79
CVE-2024-12042Shared CWE-434, CWE-79
CVE-2023-7036Shared CWE-434, CWE-79

Affected Assets

enchant97
note-mark
named in the CVE record; NVD lists no product yet

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V5.1.1
  • V1.1.2
  • V1.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.

SC-18 Mobile Code partial match

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.

PR.PS-05 mostly match
blocks

Restricting execution of unauthorized software directly blocks dangerous uploaded files from running.

PR.PS-06 mostly match
blocks

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).

PR.PS-01 partial match
blocks

Hardened configuration baselines can enforce allowed file types and processing rules.

PR.PS-02 partial match
blocks

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.

finds

Secure-coding testing and automated code-analysis tools are applied to detect improper neutralization of script-related content during web-page generation.

finds

A.5.21 governs supplier relationships and supply chain security requirements, not the technical detection of file upload vulnerabilities in deployed code.

blocks

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.

prevents

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.

prevents

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.

blocks

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.

References