Unrestricted File Upload in github.com/enchant97/note-mark/backend
Summary
Vulnerability in github.com/enchant97/note-mark/backend (CVE-2026-40262). Confidential information can be exposed externally. Exploitable via nosniff. Mitigation: upgrade to 0.0.0-20260411145018-6bb62842ccb9 or later.
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-40262 has been found in github.com/enchant97/note-mark/backend.
Attackers can target a specific entry point like nosniff over the network to misuse the product.
Confidential information can be exposed externally.
What to do: upgrade github.com/enchant97/note-mark/backend to 0.0.0-20260411145018-6bb62842ccb9 or later.
If unsure, ask your IT team or search "github.com/enchant97/note-mark/backend CVE-2026-40262" on the vendor's site.
CVE-2026-40262 (github.com/enchant97/note-mark/backend) — CWE-434
Attack vector: remote (network-reachable)
Attack surface: nosniff / filetype.Match / Unknown
Patched: 0.0.0-20260411145018-6bb62842ccb9 — 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-434) exists in github.com/enchant97/note-mark/backend. Attackers reach the vulnerable code path via nosniff.
Check the vendor advisory for the affected versions of github.com/enchant97/note-mark/backend. Attack surface: nosniff / filetype.Match / Unknown.
Severity: ?. Confidential information can be exposed externally.
Update to 0.0.0-20260411145018-6bb62842ccb9.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. 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
Apply patchpatch
Upgrade github.com/enchant97/note-mark/backend to 0.0.0-20260411145018-6bb62842ccb9ステージング環境で 0.0.0-20260411145018-6bb62842ccb9 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Gogithub.com/enchant97/note-mark/backend |
< 0.0.0-20260411145018-6bb62842ccb9→ 0.0.0-20260411145018-6bb62842ccb9 |
0.0.0-20260411145018-6bb62842ccb9 |
Original description The description as published by the source.
Note Mark is an open-source note-taking application. In versions 0.19.1 and prior, the asset delivery handler serves uploaded files inline and relies on magic-byte detection for content type, which does not identify text-based formats such as HTML, SVG, or XHTML. These files are served with an empty Content-Type, no X-Content-Type-Options: nosniff header, and inline disposition, allowing browsers to sniff and render active content. An authenticated user can upload an HTML or SVG file containing JavaScript as a note asset, and when a victim navigates to the asset URL, the script executes under the application's origin with access to the victim's authenticated session and API actions. This issue has been fixed in version 0.19.2.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com