Skip to main content

NocoDB CVE-2026-46550

| EUVDEUVD-2026-38585 MEDIUM
Sensitive Cookie in HTTPS Session Without 'Secure' Attribute (CWE-614)
2026-05-21 https://github.com/nocodb/nocodb GHSA-f74w-272x-mqcv
5.4
CVSS 3.1 · Vendor: https://github.com/nocodb/nocodb
View

Attack ChainAIDerived

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

  1. Access
    Lure authenticated victim to attacker-controlled webpage
  2. Delivery
    Browser auto-attaches refresh-token cookie to cross-origin POST
  3. Exploit
    POST /api/v2/auth/token/refresh returns new JWT without CSRF validation
  4. Execution
    Exfiltrate JWT via open-redirect or XSS on NocoDB domain
  5. Impact
    Replay JWT for persistent account access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V3 - Web Frontend Security Secure cookie flag
Exploitation Conditions

The CSRF attack path requires user interaction (CVSS UI:R) - the victim must be authenticated to NocoDB and visit an attacker-controlled page while their session is active; no authentication is required from the attacker (PR:N). The cookie interception path additionally requires the NocoDB instance to be accessible over plain HTTP rather than HTTPS, and the attacker must occupy a network position enabling passive traffic capture (same LAN segment, rogue Wi-Fi access point, or network-level MitM). No non-default NocoDB configuration is required - the vulnerable setTokenCookie code runs on all standard deployments through version 0.301.3. Limiting factors: deployments strictly enforced behind HTTPS-only reverse proxies are not susceptible to the interception path; modern browsers (Chrome 80+, Firefox 79+) that default sameSite to Lax for cookies lacking an explicit attribute partially mitigate cross-origin subresource POST CSRF, though this browser-level mitigation is not a substitute for the missing server-side sameSite attribute and CSRF token.

Impact

CVSS 5.4 Medium (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N) reflects a network-exploitable, low-complexity vulnerability requiring no attacker privileges but requiring user interaction, which corresponds to the CSRF attack path where a victim must visit a malicious page while authenticated. The raw CVSS sub-scores understate real-world impact: low confidentiality and integrity ratings do not account for the multi-day refresh token lifespan - a captured or CSRF-refreshed token grants persistent account access well beyond a single session. NocoDB is frequently self-hosted, and many deployments run over plain HTTP on internal networks, making the interception path realistic rather than theoretical. EPSS data is absent from available intelligence, so exploitation probability cannot be quantified numerically. There is no CISA KEV listing and no public exploit code identified at time of analysis. Overall, this is a real priority for HTTP-exposed self-hosted NocoDB instances and a moderate concern for HTTPS-only deployments where only the CSRF path applies; the missing sameSite mitigation from modern browsers partially reduces CSRF risk depending on browser version and request type.

Exploit ScenarioDerived

An attacker on the same network as a NocoDB user whose instance serves traffic over plain HTTP can passively intercept the refresh-token cookie in transit and replay it directly to /api/v2/auth/token/refresh to obtain a fresh, long-lived JWT - no authentication or user interaction required beyond the token being present on the wire. For the CSRF path, the attacker hosts a webpage with a hidden form or JavaScript fetch that silently sends a cross-origin POST to the victim's NocoDB instance; if the victim visits the page while logged in, the browser attaches the cookie and the endpoint issues a new JWT which the attacker can exfiltrate by chaining with an open redirect or XSS on the NocoDB domain. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
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 21, 2026

NocoDB's refresh-token cookie in versions up to and including 0.301.3 was misconfigured in setTokenCookie - issued with only httpOnly: true and no secure or sameSite attributes - exposing two distinct attack paths: cookie interception over plain HTTP networks and CSRF against the POST /api/v2/auth/token/refresh endpoint, which returns a new JWT without validating any CSRF token. Because refresh tokens carry multi-day expiry windows via NC_REFRESH_TOKEN_EXP_IN_DAYS, successful exploitation yields a long-lived credential for follow-on account access. No public exploit has been identified at time of analysis and no released patched version is confirmed, despite a documented fix in the GitHub advisory GHSA-f74w-272x-mqcv.

RemediationAI

No vendor-released patched version is confirmed at time of analysis - the advisory states 'fixed in: None,' meaning the fix logic is documented (adding httpOnly: true, sameSite: 'lax', and conditional secure based on whether req.ncSiteUrl starts with https) but no released version number is independently verified. Monitor the NocoDB advisory at https://github.com/nocodb/nocodb/security/advisories/GHSA-f74w-272x-mqcv and the npm package page for a patched release. As immediate compensating controls: enforce HTTPS exclusively for all NocoDB deployments via a reverse proxy (nginx, Caddy), which eliminates the cookie interception path entirely - the missing secure flag becomes irrelevant when plain HTTP is blocked. To partially mitigate the CSRF path, configure a reverse proxy to inject SameSite=Lax into Set-Cookie headers; note this may not fully replicate application-level CSRF token validation and could interfere with any legitimate cross-origin flows. Additionally, restrict the /api/v2/auth/token/refresh endpoint at the proxy layer to enforce same-origin Origin or Referer header validation, rejecting cross-origin POST requests. Organizations should treat deployment behind HTTPS-only infrastructure as the minimum baseline until an official patch is released.

Affected VersionsENISA

nocodb < 2026.04.1

Affected Packages

npm nocodb fix: 2026.04.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

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

Technical ContextAI · show details

CWE-614 (Sensitive Cookie in HTTPS Session Without 'Secure' Attribute) identifies the root cause class: the setTokenCookie function in packages/nocodb/src/services/users/helpers.ts constructed the refresh-token cookie with only httpOnly, an expires date, and an optional domain drawn from the NC_BASE_HOST_NAME environment variable, omitting both the secure flag and sameSite attribute. The affected package is pkg:npm/nocodb, NocoDB's open-source no-code database backend. The companion flaw is in auth.controller.ts - the POST /api/v2/auth/token/refresh endpoint reads the cookie unconditionally and returns a new JWT with no CSRF token check. Without sameSite, browsers default to permissive behavior (pre-2020 engines) or Lax (modern engines), but cross-origin POST subresource requests remain allowed in many scenarios, enabling CSRF. This vulnerability is distinct from GHSA-x4vh-j75g-268g, which involved refresh-token lifecycle on password reset with a different root cause and attack vector. The documented fix adds sameSite: 'lax' and conditionally sets secure based on whether req.ncSiteUrl starts with https, preserving functionality on plain-HTTP localhost development.

Know when the next one hits your stack

  • 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/nocodb/nocodb) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Primary rating from Vendor (https://github.com/nocodb/nocodb) · only source for this CVE.

CVSS VectorVendor: https://github.com/nocodb/nocodb

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

Lifecycle Timeline

1
Patch available
Jun 23, 2026 - 23:02 EUVD

DescriptionCVE.org

Summary

The refresh-token cookie was set with httpOnly: true but missing both the secure flag and the sameSite attribute. Over plain HTTP the cookie could be intercepted on the network; without sameSite, browsers attached it to cross-site POSTs, enabling CSRF against the token-refresh endpoint.

Details

In packages/nocodb/src/services/users/helpers.ts, setTokenCookie produced the cookie with only httpOnly, an expires date, and an optional domain from NC_BASE_HOST_NAME - no secure, no sameSite. The refresh endpoint POST /api/v2/auth/token/refresh (auth.controller.ts) read the cookie unconditionally and returned a new JWT, with no CSRF token.

The fix sets httpOnly: true, sameSite: 'lax', and conditional secure: req.ncSiteUrl.startsWith('https') so the flag is active under HTTPS while still functional on plain-HTTP localhost development.

This is distinct from GHSA-x4vh-j75g-268g (refresh-token lifecycle on password reset) - different root cause, different attack vector.

Impact

  • Cookie interception on plain HTTP networks (no secure).
  • Cross-site refresh: malicious cross-origin pages could trigger token refresh and, combined with any same-origin XSS or open-redirect on the NocoDB domain, capture the new JWT.
  • Refresh tokens have multi-day expiry (NC_REFRESH_TOKEN_EXP_IN_DAYS), so the exposure window is long.

Credit

This issue was reported by @ik0z.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

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