CVE-2026-50553: Note Mark - Path Traversal
- Cve: CVE-2026-50553
- Name: Note Mark - Path Traversal
- 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.
- Impact: Attackers with root privileges can create and write files outside the intended export directory, leading to arbitrary file write and potential system compromise.
- Remediation: Update to version 0.19.5 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write
- Requirement type: admin_privileges
- Requirements: Attacker must have root privileges to run export process
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.6
- Cvss vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Epss score: 0.00459
- Epss percentile: 0.40257
- Assignee: [email protected]
- Published at: 2026-09-04T18:17:52Z
- Age in days: 81
- Modified at: 2026-09-09T21:09:13Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-50553
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| enchantedcode:note_mark | < 0.19.5 | no | cna_alias_text | /v1/products/enchantedcode/note_mark |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| enchant97/note-mark | commit, fix, package, releases, security_advisory | yes | /v1/repositories/enchant97/note-mark |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts