CVE-2026-44523 — Vulnerability in enchant97/note-mark/backend
Note Mark has a JWT Secret Weakness that allows Full Account Takeover via Token Forgery
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.16%). Schedule for your next planned update.
Does your project use an affected github.com/enchant97/note-mark/backend version?
Paste your go.sum to check it for CVE-2026-44523 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
No minimum length or entropy is enforced on the JWT_SECRET configuration value. The application accepts any base64-decodable secret regardless of size, including secrets as short as 1 byte.
HS256 secrets below 32 bytes are brute-forceable offline, allowing attackers to recover the signing key and forge valid JWTs for arbitrary users.
Impact
An attacker who captures a single valid JWT (e.g, from cookies, logs, or network traffic) can:
> Crack the signing secret offline using brute-force or wordlist attacks > Forge valid JWTs for any user ID (including administrators) > Authenticate without knowing any credentials
This results in full account takeover across the entire application with no server-side detection or rate limiting possible.
Details
In backend/config/utils.go, the Base64Decoded.UnmarshalText function decodes the JWT secret but does not validate its length or entropy.
In backend/core/auth.go, JWT tokens are signed using HS256 without enforcing minimum key size requirements.
According to RFC 7518 Section 3.2, HS256 keys must be at least 256 bits (32 bytes). Libraries such as PyJWT explicitly warn against shorter keys, but note-mark performs no such validation.
PoC
1- Deploy note-mark with a weak secret:
JWT_SECRET = base64("testsecret123456789012345")
2- Register an account and capture the Auth-Session-Token cookie
3- Crack the secret offline (example using Python):
import jwt, base64
jwt.decode(TOKEN, base64.b64decode(SECRET), algorithms=["HS256"])
4- Forge a new token for any user UUID with extended expiry
5- Send the forged token in requests → server returns 200 Ok and authenticates as that user
Reproduction Steps
1- Deploy the application with a JWT secret shorter than 32 bytes (after base64 decoding) 2- Authenticate and capture a valid JWT 3- Perform offline brute-force or dictionary attack against the token signature 4- Recover the secret 5- Generate a forged JWT for another user 6- Use the forged token to access protected endpoints
Fix Recommendation
- Enforce a minimum of 32 bytes (256 bits) for JWT secrets after base64 decoding
- Reject weak secrets during configuration parsing (e.g., in
Base64Decoded.UnmarshalTextor config validation) - Optionally log warnings or fail startup if the secret is insecure
Resources
- RFC 7518 Section 3.2 (JSON Web Algorithms - HMAC key size requirements)
- CWE-326: Inadequate Encryption Strength
- CWE-345: Insufficient Verification of Data Authenticity
Advisory Timeline
- First published May 7, 2026 (203 days ago).
- Last revised June 25, 2026 — 49 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/enchant97/note-mark/backend@v0.0.0-20260501152247-18b587758667
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/enchant97/note-mark/backend Go · Affected: All versions | 0.0.0-20260501152247-18b587758667 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
References
- https://github.com/enchant97/note-mark/security/advisories/GHSA-q6mh-rqwh-g786WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-44523ADVISORY
- https://github.com/enchant97/note-mark/commit/18b58775866776ed400c403dd0ccad68c1fa4802WEB
- https://github.com/enchant97/note-markPACKAGE
- https://github.com/enchant97/note-mark/releases/tag/v0.19.4WEB
Frequently Asked Questions
- What is CVE-2026-44523?
- Note Mark has a JWT Secret Weakness that allows Full Account Takeover via Token Forgery. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2026-44523?
- CVE-2026-44523 affects github.com/enchant97/note-mark/backend. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-44523 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 3.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-104099CRITICAL
Fabio: Access-control bypass through unnormalized request paths
- CVE-2026-41571CRITICAL
Note Mark: OIDC-registered users authenticated by submitting password "null"
- CVE-2026-77369CRITICAL
Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint
- CVE-2026-40262HIGH
Note Mark has Stored XSS via Unrestricted Asset Upload