SCA: security update for github.com/enchant97/note-mark/backend (GHSA-g49p-4qxj-88v3)

high Tenable Self-Hosted Container Security Plugin ID 441508

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-44522)

Solution

Update the github.com/enchant97/note-mark/backend library and its related packages to version 0.0.0-20260501152243-db3f72bff780 or later.

See Also

https://github.com/advisories/GHSA-g49p-4qxj-88v3

Plugin Details

Severity: High

ID: 441508

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 5/8/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.84

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2026-44522

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 8.6

Threat Score: 6.1

Threat Vector: CVSS:4.0/E:U

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/7/2026

Vulnerability Publication Date: 5/7/2026

Reference Information

CVE: CVE-2026-44522