# CVE-2026-40262: Note Mark has Stored XSS via Unrestricted Asset Upload

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-02)
- Published: 2026-04-13T19:23:08.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-9pr4-rf97-79qh, GO-2026-5295
- Weaknesses: CWE-79, CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- enchant97 note-mark: < 0.19.2
- github.com/enchant97/note-mark/backend (Go): before 0.0.0-20260411145018-6bb62842ccb9

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/enchant97/note-mark/security/advisories/GHSA-9pr4-rf97-79qh> (advisory, web)
- <https://github.com/enchant97/note-mark/commit/6bb62842ccb956870b9bf183629eba95e326e5e3> (web)
- <https://github.com/enchant97/note-mark/releases/tag/v0.19.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40262> (advisory)
- <https://github.com/enchant97/note-mark> (package)

## Sources

- CVE List: [CVE-2026-40262](https://www.cve.org/CVERecord?id=CVE-2026-40262), CVE Terms of Use, modified 2026-04-18
- GitHub Advisory Database: [GHSA-9pr4-rf97-79qh](https://github.com/advisories/GHSA-9pr4-rf97-79qh), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5295](https://pkg.go.dev/vuln/GO-2026-5295), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-40262](https://nvd.nist.gov/vuln/detail/CVE-2026-40262), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40262 · Whole record: https://cve.day/CVE-2026-40262.json · Rebuilt by cve.day 2026-11-25T22:59:18.925Z
