Skip to content
Heist/ feed
Back to feed
High

Note Mark has Stored XSS via Unrestricted Asset Upload

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-40262
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 18:29 UTC · Revision 1

Source evidence

Note Mark has Stored XSS via Unrestricted Asset Upload

core-osv · Original source

Published 16 Apr 2026, 23:51 UTC

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.

osv:CVE-2026-40262
Complete source record
{
  "id": "169d8cb5d6b115baba1ba7a786f9e915fb520f1e19650937dbf4cc0d31248656",
  "url": "https://osv.dev/vulnerability/CVE-2026-40262",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Note Mark has Stored XSS via Unrestricted Asset Upload",
    "summary": "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.",
    "evidence": "osv:CVE-2026-40262",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-40262",
      "aliases": [
        "CVE-2026-40262",
        "GHSA-9pr4-rf97-79qh",
        "GO-2026-5295"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/enchant97/note-mark",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9f627bbb0cccebf872ec4b450ba2cd1d59ba9697"
                },
                {
                  "fixed": "6bb62842ccb956870b9bf183629eba95e326e5e3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.19.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6bb62842ccb956870b9bf183629eba95e326e5e3"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9f627bbb0cccebf872ec4b450ba2cd1d59ba9697"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.19.2"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.19.1",
            "v0.19.0",
            "v0.18.0",
            "v0.17.1",
            "v0.17.0",
            "v0.16.3",
            "v0.16.2",
            "v0.16.1",
            "v0.16.0",
            "v0.15.4",
            "v0.15.3",
            "v0.15.2",
            "v0.15.1",
            "v0.15.0",
            "v0.14.1",
            "v0.14.0",
            "v0.13.1",
            "v0.13.0",
            "v0.12.2",
            "v0.12.1",
            "v0.12.0",
            "v0.11.1",
            "v0.11.0",
            "v0.10.0",
            "v0.9.0",
            "v0.8.0",
            "v0.7.0",
            "v0.6.0",
            "v0.6.0-alpha.4",
            "v0.6.0-alpha.3",
            "v0.6.0-alpha.2",
            "v0.6.0-alpha"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40262.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.182251001Z",
      "provider": "osv",
      "references": [
        "https://github.com/enchant97/note-mark/releases/tag/v0.19.2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40262.json",
        "https://github.com/enchant97/note-mark/security/advisories/GHSA-9pr4-rf97-79qh",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-40262",
        "https://github.com/enchant97/note-mark/commit/6bb62842ccb956870b9bf183629eba95e326e5e3"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-434",
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40262.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-40262",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505706,
  "published_at": "2026-04-16T23:51:38.679+00:00"
}