{"cve":"CVE-2026-44522","nvd":{"published":"2026-05-14T19:16:37.330","modified":"2026-10-26T14:10:00.130","status":"Deferred","description":"Note Mark is an open-source note-taking application. From 0.13.0 to before 0.19.4, the Note Mark application allows authenticated users to upload assets to notes via POST /api/notes/{noteID}/assets, where the asset filename is provided through the X-Name HTTP request header. This value is stored directly in the database without any sanitization or validation - no path separator filtering, no directory traversal sequence rejection, and no use of filepath.Base() to strip directory components. The unsanitized name is persisted as-is in the note_assets table (Name column, varchar(80)). When an administrator subsequently runs the data export CLI commands (note-mark migrate export-v1 or note-mark migrate export), the stored asset name is passed directly into filepath.Join() and path.Join() calls as part of the output file path argument to os.Create(). Since Go's filepath.Join() resolves ../ sequences during path normalization, an attacker-controlled asset name containing directory traversal sequences causes the export process to write files to arbitrary locations on the filesystem, completely outside the intended export directory. This vulnerability is fixed in 0.19.4.","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/security/advisories/GHSA-g49p-4qxj-88v3","https://github.com/enchant97/note-mark/security/advisories/GHSA-g49p-4qxj-88v3"],"products":[],"source":"nvd","synced_at":"2026-10-26T14:27:29.784594657+00:00"},"epss":{"cve":"CVE-2026-44522","score":0.00495,"percentile":0.42206,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-g49p-4qxj-88v3","url":"https://osv.dev/vulnerability/GHSA-g49p-4qxj-88v3","summary":"Note Mark: Arbitrary File Write via Path Traversal in Asset Names Leads to Remote Code Execution","modified":"2026-06-25T19:56:37.951401875Z","packages":[{"ecosystem":"Go","name":"github.com/enchant97/note-mark/backend","purl":"pkg:golang/github.com/enchant97/note-mark/backend","ranges":["<0.0.0-20260501152243-db3f72bff780"],"fixed":["0.0.0-20260501152243-db3f72bff780"]}]},{"id":"GO-2026-5389","url":"https://osv.dev/vulnerability/GO-2026-5389","summary":"Note Mark: Arbitrary File Write via Path Traversal in Asset Names Leads to Remote Code Execution in github.com/enchant97/note-mark/backend","modified":"2026-06-25T19:45:38.471572967Z","packages":[{"ecosystem":"Go","name":"github.com/enchant97/note-mark/backend","purl":"pkg:golang/github.com/enchant97/note-mark/backend","ranges":["<0.0.0-20260501152243-db3f72bff780"],"fixed":["0.0.0-20260501152243-db3f72bff780"]}]}],"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."]}