Skip to main content

Note Mark EUVDEUVD-2026-30367

| CVE-2026-44523 CRITICAL
Inadequate Encryption Strength (CWE-326)
2026-05-07 https://github.com/enchant97/note-mark GHSA-q6mh-rqwh-g786
10.0
CVSS 3.1 · Vendor: https://github.com/enchant97/note-mark
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Register account or intercept traffic
  2. Delivery
    Capture valid JWT token
  3. Exploit
    Brute-force HS256 secret offline
  4. Execution
    Forge JWT for target user UUID
  5. Persist
    Authenticate as victim with forged token
  6. Impact
    Access protected resources/data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Encryption strength requirements
Exploitation Conditions

Exploitation requires the Note Mark instance to be configured with a JWT_SECRET that decodes to fewer than 32 bytes (violating RFC 7518 minimum for HS256). This is a deployment-time misconfiguration - administrators who used weak secrets like base64-encoded dictionary words, short passphrases, or single-word strings create the vulnerable condition. Attacker must also obtain at least one valid JWT, achievable through: intercepting HTTPS traffic (if TLS misconfigured), accessing application logs where tokens may appear, browser cookie theft via XSS (separate vulnerability), or capturing their own token by registering an account. No special network position required beyond ability to send HTTP requests to the application. Default configurations are only vulnerable if administrator actively sets a weak secret - the application does not generate insecure defaults, but also does not prevent accepting them pre-patch. Limiting factors: attacker needs JWT sample (not achievable purely remotely without prior access/interception), and brute-force time depends on secret entropy (single-word secrets crack in seconds, random 20-byte secrets may take hours).

Impact

CVSS 10.0 (AV:N/AC:L/PR:N/UI:N/S:C) indicates critical severity with network attack vector, low complexity, no authentication required, and scope change (compromised component affects resources beyond its security scope). However, real-world exploitability requires two preconditions: (1) administrator configured a weak JWT secret during deployment, and (2) attacker obtained a valid JWT through interception, log access, or social engineering. The S:C (scope change) rating is accurate - forging admin tokens grants access to all user data across the application boundary. No EPSS score provided, but exploitation probability is moderate rather than widespread because it depends on misconfiguration prevalence. Not listed in CISA KEV, suggesting targeted rather than mass exploitation. Vendor-published PoC significantly lowers attacker skill requirements. Patch confirmed available (commit 18b587758667, release v0.19.4) per GitHub advisory. Priority assessment: HIGH for existing Note Mark deployments (verify secret strength immediately), MEDIUM for new deployments (patch eliminates risk at configuration time). Risk is higher than typical cryptographic vulnerabilities because offline attacks bypass rate limiting and detection - there is no server-side signal of secret compromise until forged tokens appear in logs.

Exploit ScenarioDerived

An attacker identifies a Note Mark instance through reconnaissance (Shodan, exposed endpoints). They register a free user account and capture their own Auth-Session-Token JWT from browser cookies. Using the vendor-published PoC, they brute-force the HS256 secret offline with a dictionary of common base64-encoded strings (testing millions of candidates per second with no server interaction). Once the secret is recovered, they craft a forged JWT with an administrator's user UUID copied from a public profile or enumerated endpoint, set an extended expiry, and send it in the Auth-Session-Token cookie to access admin endpoints, exfiltrate all user notes, or modify application data with full privileges.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 07, 2026

JWT secret validation bypass in Note Mark allows full account takeover through offline token forgery. The Go-based note-taking application accepts HS256 signing secrets shorter than RFC 7518's required 32 bytes, enabling attackers to capture a single valid JWT from network traffic or logs, brute-force the weak secret offline, and forge authentication tokens for any user including administrators. Publicly available exploit code exists (vendor-published PoC in GitHub advisory GHSA-q6mh-rqwh-g786). Vendor-released patch available in commit 18b587758667 and release v0.19.4. CVSS 10.0 reflects unauthenticated network exploitation with scope change, though real-world impact requires JWT capture as a prerequisite.

RemediationAI

Upgrade to Note Mark v0.19.4 or apply commit 18b587758667 from https://github.com/enchant97/note-mark/commit/18b58775866776ed400c403dd0ccad68c1fa4802. The patch adds validation requiring JWT_SECRET to decode to minimum 32 bytes, causing application startup to fail if the secret is weak. After upgrading, generate a new cryptographically strong secret (minimum 32 random bytes, base64-encoded) and update the JWT_SECRET environment variable - example: openssl rand -base64 32. Rotate the secret immediately if current value is under 32 bytes, as any previously issued tokens signed with the weak secret can be forged. Secret rotation invalidates all existing user sessions, requiring re-authentication. For unpatched systems awaiting upgrade, no effective workaround exists because the vulnerability is in core authentication logic - compensating controls (network segmentation, JWT expiry reduction) only limit attack surface but do not prevent token forgery if the secret is weak. Audit application logs for unexpected authentication patterns (admin logins from unusual IPs, token reuse across sessions) as potential indicators of forged tokens. Full advisory: https://github.com/enchant97/note-mark/security/advisories/GHSA-q6mh-rqwh-g786.

Affected VersionsENISA

note-mark < 0.19.4

Affected Packages

go github.com/enchant97/note-mark/backend fix: 0.0.0-20260501152247-18b587758667
euvd note_mark fix: 0.19.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability affects the JWT implementation in Note Mark's Go backend (pkg:go/github.com_enchant97_note-mark_backend). JWT (JSON Web Token) authentication uses cryptographic signatures to verify token authenticity without server-side session state. Note Mark implements HS256 (HMAC-SHA256), a symmetric signing algorithm where the same secret both signs and validates tokens. RFC 7518 Section 3.2 mandates minimum 256-bit (32-byte) keys for HS256 because shorter secrets are vulnerable to brute-force attacks - an attacker with a valid token can test billions of candidate secrets offline until finding one that produces a matching signature. The flaw maps to CWE-326 (Inadequate Encryption Strength) because config/utils.go's Base64Decoded.UnmarshalText function performs base64 decoding without length validation, and core/auth.go signs tokens with whatever key is provided. The patch adds a validate:"gte=32" constraint in config/config.go to enforce the 32-byte minimum during application startup, causing misconfigured deployments to fail safely rather than operate insecurely.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/enchant97/note-mark) PRIMARY 10.0 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
SUSE CRITICAL

Primary rating from Vendor (https://github.com/enchant97/note-mark).

CVSS VectorVendor: https://github.com/enchant97/note-mark

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

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):

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.UnmarshalText or 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

---

Executive ViewAI

Why It Matters

Note Mark's JWT validation bypass (CVE-2026-44523) allows attackers to forge authentication tokens for any user, including administrators, by brute-forcing weak cryptographic secrets-enabling complete account takeover without legitimate credentials. This affects all deployments running versions prior to v0.19.4 and poses an immediate risk to data confidentiality, integrity, and availability across all user accounts.

Business Impact: Severe
Compensating Controls

Apply vendor patch. If immediate patching is infeasible: (1) Isolate Note Mark from untrusted networks and enforce VPN/IP whitelisting; (2) monitor authentication logs for anomalous token usage or admin account access from unexpected sources; (3) enforce network segmentation to prevent JWT capture; (4) disable HS256 algorithm support if application configuration permits and implement HS512 or RS256 as alternatives.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy