Backend: Note Mark: Path traversal via unsanitized book/note slug in migrate export (sibling of GHSA-g49p) (CVE-2026-50553)
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.
AI Analysis
Technical Summary
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.
Backend: Note Mark: Path traversal via unsanitized book/note slug in migrate export (sibling of GHSA-g49p) (CVE-2026-50553)
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
Affected software
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.