{"cve":"CVE-2026-50553","nvd":{"published":"2026-09-04T18:17:52.203","modified":"2026-09-09T21:09:13.080","status":"Deferred","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.","cvss_v4":{"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","score":8.6},"cvss_v3":null,"cwes":["CWE-20","CWE-22"],"references":["https://github.com/enchant97/note-mark/commit/67b7de04308a858ef27ceff87b514067b6d667e5","https://github.com/enchant97/note-mark/releases/tag/v0.19.5","https://github.com/enchant97/note-mark/security/advisories/GHSA-rqrh-8wpv-x7hh","https://github.com/enchant97/note-mark/security/advisories/GHSA-rqrh-8wpv-x7hh"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:52:03.409947763+00:00"},"epss":{"cve":"CVE-2026-50553","score":0.00459,"percentile":0.3977,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rqrh-8wpv-x7hh","url":"https://osv.dev/vulnerability/GHSA-rqrh-8wpv-x7hh","summary":"Note Mark: Path traversal via unsanitized book/note slug in migrate export (sibling of GHSA-g49p)","modified":"2026-07-21T19:19:25.325132271Z","packages":[{"ecosystem":"Go","name":"github.com/enchant97/note-mark/backend","purl":"pkg:golang/github.com/enchant97/note-mark/backend","ranges":["<0.0.0-20260601210719-67b7de04308a"],"fixed":["0.0.0-20260601210719-67b7de04308a"]}]},{"id":"GO-2026-5949","url":"https://osv.dev/vulnerability/GO-2026-5949","summary":"Note Mark: Path traversal via unsanitized book/note slug in migrate export (sibling of GHSA-g49p) in github.com/enchant97/note-mark/backend","modified":"2026-07-21T19:15:27.837567894Z","packages":[{"ecosystem":"Go","name":"github.com/enchant97/note-mark/backend","purl":"pkg:golang/github.com/enchant97/note-mark/backend","ranges":["<0.0.0-20260601210719-67b7de04308a"],"fixed":["0.0.0-20260601210719-67b7de04308a"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}