{"answers":{"affected":"3 open source packages ship an affected version, including github.com/enchant97/note-mark/backend.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44522 exists.","fix":"Upgrade github.com/enchant97/note-mark/backend to 0.0.0-20260501152243-db3f72bff780 or later.","what":"CVE-2026-44522 is a high-severity path traversal vulnerability in enchant97 note-mark, published on 14 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-44522 and fix it if it is affected.\n\nWhat it is: CVE-2026-44522 is a high-severity path traversal vulnerability in enchant97 note-mark, published on 14 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44522 exists.\n\nAffected packages and fixed versions:\n- github.com/enchant97/note-mark/backend (Go): affected all versions; fixed in 0.0.0-20260501152243-db3f72bff780\n- github.com/enchant97/note-mark/backend (Go): affected all versions; fixed in 0.0.0-20260501152243-db3f72bff780\n- github.com/enchant97/note-mark/backend (Go): affected all versions; fixed in 0.0.0-20260501152243-db3f72bff780\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-44522/ (Markdown: https://insights.sbomify.com/CVE-2026-44522/index.md)","id":"CVE-2026-44522","markdown":"https://insights.sbomify.com/CVE-2026-44522/index.md","name":"CVE-2026-44522","record":{"aliases":["GHSA-g49p-4qxj-88v3","GO-2026-5389"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Note Mark application","requires_auth":"low_privilege","summary":"Authenticated attackers can write arbitrary files via path traversal in asset names, leading to remote code execution during data export.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.6,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Note Mark: Arbitrary File Write via Path Traversal in Asset Names Leading to Remote Code Execution","id":"CVE-2026-44522","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"Note Mark: JWT Secret Weakness allows Full Account Takeover via token forgery","id":"CVE-2026-44523"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20260501152243-db3f72bff780"],"introduced":["0"],"last_affected":[],"package":"github.com/enchant97/note-mark/backend","purl":null,"source":"GHSA-g49p-4qxj-88v3"},{"ecosystem":"Go","fixed":["0.0.0-20260501152243-db3f72bff780"],"introduced":["0"],"last_affected":[],"package":"github.com/enchant97/note-mark/backend","purl":"pkg:golang/github.com/enchant97/note-mark/backend","source":"GHSA-g49p-4qxj-88v3"},{"ecosystem":"Go","fixed":["0.0.0-20260501152243-db3f72bff780"],"introduced":["0"],"last_affected":[],"package":"github.com/enchant97/note-mark/backend","purl":"pkg:golang/github.com/enchant97/note-mark/backend","source":"GO-2026-5389"}],"prev":{"headline":"elFinder: SQL Injection MySQL Volume Driver (elFinderVolumeMySQL)","id":"CVE-2026-44521"},"products":["note-mark"],"published":"2026-05-14","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-14","vendors":["enchant97"]},"summary":"Authenticated attackers can write arbitrary files via path traversal in asset names, leading to remote code execution during data export.","url":"https://insights.sbomify.com/CVE-2026-44522/"}