Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Backend: Note Mark: Path traversal via unsanitized book/note slug in migrate export (sibling of GHSA-g49p) (CVE-2026-50553)

0
High
Published: 07/09/2026 (07/09/2026, 13:41:35 UTC)
Source: GCVE Database
Product: github.com/enchant97/note-mark/backend

Description

Note Mark contains a path traversal vulnerability in its migrate export commands due to improper validation of book and note slug inputs. The slug validation uses an unanchored regex pattern that allows strings containing valid characters anywhere, enabling traversal sequences like '../../../../etc/cron.d/x' to pass. During export, these unsanitized slugs are joined into filesystem paths and used to create directories and files outside the intended export directory. Since the export process often runs with root privileges, this can lead to arbitrary file creation with root permissions, potentially enabling code execution.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Goghsa
github.com/enchant97/note-mark/backend
Affected versions
<0.0.0-20260601210719-67b7de04308a

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/10/2026, 10:25:12 UTC

Technical Analysis

Note Mark's slug validation for books and notes uses an unanchored regex pattern '[a-z0-9-]+' which matches any string containing these characters, allowing path traversal strings to pass validation. The migrate export commands join these unsanitized slugs into filesystem paths using path.Join, which resolves '../' segments, resulting in directory and file creation outside the configured export directory. This vulnerability allows a low-privilege authenticated user to cause the export process, typically run as root, to write files arbitrarily on the filesystem, leading to potential root code execution. This issue is related to but distinct from GHSA-g49p-4qxj-88v3, which fixed asset filename sanitization but left slug sanitization incomplete.

Potential Impact

An authenticated user with low privileges can supply crafted book or note slugs containing path traversal sequences. When an administrator runs the export commands (commonly as root), the exporter creates directories and writes files outside the intended export directory. This can lead to arbitrary file creation with root privileges, allowing attackers to place files in sensitive locations such as /etc/cron.d/ or systemd unit directories, potentially resulting in root-level code execution.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid running the 'note-mark migrate export' commands with root privileges or restrict export operations to trusted data only. Monitor for vendor updates addressing slug input sanitization and ensure that slug validation uses anchored regex patterns or explicit sanitization before filesystem operations.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-rqrh-8wpv-x7hh
Osv Schema Version
1.4.0
Aliases
["CVE-2026-50553"]
Ecosystems
["Go"]
Database Specific Severity
HIGH
Cvss Version
4.0

Threat ID: 6a50bac868715ace435892b3

Added to database: 07/10/2026, 09:26:32 UTC

Last enriched: 07/10/2026, 10:25:12 UTC

Last updated: 07/31/2026, 12:27:30 UTC

Views: 63

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses