Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-44522

HIGH 8.6EPSS 50%

Note Mark: Arbitrary File Write via Path Traversal in Asset Names Leading to Remote Code Execution

Also known as GHSA-g49p-4qxj-88v3, GO-2026-5389

Mitigation

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

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

Vulnerability facts

Affected
github.com/enchant97/note-mark/backend < 0.0.0-20260501152243-db3f72bff780
Fixed in
0.0.0-20260501152243-db3f72bff780
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
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:NOpen in CVSS calculator
Show all 11 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
EPSS
0.72% chance of exploitation in 30 days (percentile 50, 2026-11-26)
CWE
CWE-20, CWE-22
Published
Modified

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

Package / productAffectedFixedSource
Go github.com/enchant97/note-mark/backend< 0.0.0-20260501152243-db3f72bff7800.0.0-20260501152243-db3f72bff780osv
enchant97 note-mark>= 0.13.0, < 0.19.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors