Vulnerability in github.com/enchant97/note-mark/backend
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-50553 has been found in github.com/enchant97/note-mark/backend.
Attackers can target a specific entry point like POST /api/books over the network to misuse the product.
Risk of unauthorized operations or information disclosure.
What to do: upgrade github.com/enchant97/note-mark/backend to 0.0.0-20260601210719-67b7de04308a or later.
If unsure, ask your IT team or search "github.com/enchant97/note-mark/backend CVE-2026-50553" on the vendor's site.
CVE-2026-50553 (github.com/enchant97/note-mark/backend) — CWE-20
Attack surface: POST /api/books / slug / path.Join / filepath.Join
Patched: 0.0.0-20260601210719-67b7de04308a — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-20) exists in github.com/enchant97/note-mark/backend. Attackers reach the vulnerable code path via POST /api/books.
Check the vendor advisory for the affected versions of github.com/enchant97/note-mark/backend. Attack surface: POST /api/books / slug / path.Join / filepath.Join.
Severity: ?. Risk of unauthorized operations or information disclosure.
Update to 0.0.0-20260601210719-67b7de04308a.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual POST /api/books requests with malformed payloads or SQL meta-characters. Run grep -r 'github.com/enchant97/note-mark/backend' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'github.com/enchant97/note-mark/backend' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/enchant97/note-mark/backendを grep し、稼働しているサービス・バージョンを把握する。 -
2
Hunt for indicators of compromisedetect
grep 'POST /api/books' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
POST /api/booksへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3
Apply patchpatch
Upgrade github.com/enchant97/note-mark/backend to 0.0.0-20260601210719-67b7de04308aステージング環境で 0.0.0-20260601210719-67b7de04308a に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4
Post-deployment verificationverify
Replay attack against POST /api/books on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| gogithub.com/enchant97/note-mark/backend |
< 0.0.0-20260601210719-67b7de04308a→ 0.0.0-20260601210719-67b7de04308a |
0.0.0-20260601210719-67b7de04308a |
Original description The description as published by the source.
Note Mark is an open-source note-taking application. Prior to version 0.19.5, Note Mark validates book and note slug values with the OpenAPI/huma tag pattern:"[a-z0-9-]+". huma compiles this with regexp.MustCompile(s.Pattern) and tests it with patternRe.MatchString(str), an UNANCHORED match. Because the pattern is not anchored (^...$), any string that merely CONTAINS one [a-z0-9-] substring passes validation. A slug such as ../../../../../../tmp/escape is accepted and stored verbatim. The data-export CLI commands (note-mark migrate export and note-mark migrate export-v1) join these unsanitized slugs straight into the output path with path.Join / filepath.Join, then os.MkdirAll the directory and os.Create the note file. path.Join resolves the ../ segments, so the note content file is written OUTSIDE the configured export directory. The export process commonly runs as root (default in Docker / bare-metal admin usage), so this is a root-privilege arbitrary directory create + file write. This issue has been patched in version 0.19.5.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com