{"id":17448,"date":"2026-09-05T02:31:07","date_gmt":"2026-09-04T18:31:07","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-50553"},"modified":"2026-09-05T02:31:07","modified_gmt":"2026-09-04T18:31:07","slug":"cve-2026-50553","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-50553","title":{"rendered":"CVE-2026-50553 &#8211; Note Mark is an open-source note-taking application. Prior to version 0.19.5, Note Mark va"},"content":{"rendered":"<p>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:&#8221;[a-z0-9-]+&#8221;. huma compiles this with regexp.MustCompile(s.Pattern) and tests it with patternRe.MatchString(str), an UNANCHORED match. Because the pattern is not anchored (^&#8230;$), 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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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:&#8221;[a-z0-9-]+&#8221;. huma compiles this with rege<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-17448","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/17448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}