CVE-2026-50553
Note Mark: Path traversal via unsanitized book/note slug in migrate export (sibling of GHSA-g49p)
Also known as GHSA-rqrh-8wpv-x7hh, GO-2026-5949
Mitigation
- Upgrade github.com/enchant97/note-mark/backend to 0.0.0-20260601210719-67b7de04308a or later.
Who should check
- Projects that depend on Go package github.com/enchant97/note-mark/backend (< 0.0.0-20260601210719-67b7de04308a)
- Anyone running enchant97 note-mark < 0.19.5
Vulnerability facts
- Affected
- github.com/enchant97/note-mark/backend < 0.0.0-20260601210719-67b7de04308a
- Fixed in
- 0.0.0-20260601210719-67b7de04308a
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.6 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.46% chance of exploitation in 30 days (percentile 32, 2026-11-26)
- CWE
- CWE-20, CWE-22
- Modified
Description
Note Mark is an open-source note-taking application. Prior to version 0.19.5, Note Mark validates book and note slug values with the OpenAPI/huma tag pattern:"[a-z0-9-]+". huma compiles this with regexp.MustCompile(s.Pattern) and tests it with patternRe.MatchString(str), an UNANCHORED match. Because the pattern is not anchored (^...$), any string that merely CONTAINS one [a-z0-9-] substring passes validation. A slug such as ../../../../../../tmp/escape is accepted and stored verbatim. The data-export CLI commands (note-mark migrate export and note-mark migrate export-v1) join these unsanitized slugs straight into the output path with path.Join / filepath.Join, then os.MkdirAll the directory and os.Create the note file. path.Join resolves the ../ segments, so the note content file is written OUTSIDE the configured export directory. The export process commonly runs as root (default in Docker / bare-metal admin usage), so this is a root-privilege arbitrary directory create + file write. This issue has been patched in version 0.19.5.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/enchant97/note-mark/backend | < 0.0.0-20260601210719-67b7de04308a | 0.0.0-20260601210719-67b7de04308a | osv |
| enchant97 note-mark | < 0.19.5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-50553. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-50553.md Affected: github.com/enchant97/note-mark/backend < 0.0.0-20260601210719-67b7de04308a Fixed in: 0.0.0-20260601210719-67b7de04308a Steps: 1. Search this machine and project for github.com/enchant97/note-mark/backend (Go), enchant97 note-mark: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-50553 being exploited?
There is no confirmed exploitation: CVE-2026-50553 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-50553?
High: CVSS 8.6 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-50553?
github.com/enchant97/note-mark/backend < 0.0.0-20260601210719-67b7de04308a.
Is there a fix for CVE-2026-50553?
Yes. Fixed in 0.0.0-20260601210719-67b7de04308a. Upgrade github.com/enchant97/note-mark/backend to 0.0.0-20260601210719-67b7de04308a or later.
How do I check if I'm affected by CVE-2026-50553?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.