# CVE-2026-44522: Note Mark: Arbitrary File Write via Path Traversal in Asset Names Leading to Remote Code Execution

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: Passive; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.72% (percentile 50, 2026-11-26)
- **CWE:** CWE-20, CWE-22
- **Aliases:** GHSA-g49p-4qxj-88v3, GO-2026-5389
- **Published:** 2026-05-07T21:06:55.000Z
- **Modified:** 2026-10-26T14:10:00.130Z

## Who should check

- Projects that depend on Go package github.com/enchant97/note-mark/backend (\< 0.0.0-20260501152243-db3f72bff780)
- Anyone running enchant97 note-mark \>= 0.13.0, \< 0.19.4

## 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.

## Affected and fixed versions

- Go `github.com/enchant97/note-mark/backend`: affected \< 0.0.0-20260501152243-db3f72bff780; fixed 0.0.0-20260501152243-db3f72bff780 (osv)
- enchant97 note-mark: \>= 0.13.0, \< 0.19.4 (cvelist)

## Mitigation

- Upgrade github.com/enchant97/note-mark/backend to 0.0.0-20260501152243-db3f72bff780 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-44522. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-44522.md
Affected: github.com/enchant97/note-mark/backend < 0.0.0-20260501152243-db3f72bff780
Fixed in: 0.0.0-20260501152243-db3f72bff780

Steps:
1. Search this machine and project for github.com/enchant97/note-mark/backend (Go), enchant97 note-mark: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-44522 being exploited?

There is no confirmed exploitation: CVE-2026-44522 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.72% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-44522?

High: CVSS 8.6 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-44522?

github.com/enchant97/note-mark/backend \< 0.0.0-20260501152243-db3f72bff780.

### Is there a fix for CVE-2026-44522?

Yes. Fixed in 0.0.0-20260501152243-db3f72bff780. Upgrade github.com/enchant97/note-mark/backend to 0.0.0-20260501152243-db3f72bff780 or later.

### How do I check if I'm affected by CVE-2026-44522?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/enchant97/note-mark/security/advisories/GHSA-g49p-4qxj-88v3>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-44522>
- other: <https://github.com/enchant97/note-mark>
- other: <https://github.com/enchant97/note-mark/releases/tag/v0.19.4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-44522>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g49p-4qxj-88v3> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-5389> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-44522> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-44522>
