CVE-2026-40262

Source
https://cve.org/CVERecord?id=CVE-2026-40262
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40262.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40262
Aliases
Published
2026-04-16T23:51:38.679Z
Modified
2026-07-15T01:48:57.706037552Z
Severity
  • 8.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N CVSS Calculator
Summary
Note Mark has Stored XSS via Unrestricted Asset Upload
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-434",
        "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40262.json"
}
References

Affected packages

Git / github.com/enchant97/note-mark

Affected ranges

Type
GIT
Repo
https://github.com/enchant97/note-mark
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.19.2"
        }
    ]
}

Affected versions

v0.*
v0.10.0
v0.11.0
v0.11.1
v0.12.0
v0.12.1
v0.12.2
v0.13.0
v0.13.1
v0.14.0
v0.14.1
v0.15.0
v0.15.1
v0.15.2
v0.15.3
v0.15.4
v0.16.0
v0.16.1
v0.16.2
v0.16.3
v0.17.0
v0.17.1
v0.18.0
v0.19.0
v0.19.1
v0.6.0
v0.6.0-alpha
v0.6.0-alpha.2
v0.6.0-alpha.3
v0.6.0-alpha.4
v0.7.0
v0.8.0
v0.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40262.json"