GHSA-rvp5-9p55-f5rp

Suggest an improvement
Source
https://github.com/advisories/GHSA-rvp5-9p55-f5rp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-rvp5-9p55-f5rp/GHSA-rvp5-9p55-f5rp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rvp5-9p55-f5rp
Aliases
  • CVE-2026-47377
Published
2026-06-05T16:00:15Z
Modified
2026-06-05T16:15:06.888246034Z
Severity
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
NocoDB: Open Redirect via Hash Fragment in hashRedirect Plugin
Details

Summary

The client-side hashRedirect plugin called window.location.replace() on a path extracted from the URL hash fragment after only checking hashPath.startsWith('/'). Protocol-relative URLs (//attacker.com/…) also satisfy that check, so a crafted link such as https://nocodb.example/#//attacker.com/phishing silently redirected visitors to an attacker-controlled origin.

Details

In packages/nc-gui/plugins/hashRedirect.client.ts, the plugin extracted the hash content and normalised it into cleanUrl:

let cleanUrl = hashPath.startsWith('/') ? hashPath : `/${hashPath}`
if (hashQuery) cleanUrl += `?${hashQuery}`
window.location.replace(cleanUrl)

startsWith('/') returns true for //attacker.com/..., which browsers interpret as a protocol-relative absolute URL. No hostname check was performed before the redirect. The fix adds an early if (/^\/[/\\]/.test(hashPath)) return to reject protocol-relative paths.

Impact

  • Open redirect from any NocoDB origin to an attacker-controlled domain.
  • No authentication required; the attack lands the victim on an attacker-controlled page that may impersonate a NocoDB login.

Credit

This issue was reported by @fg0x0.

Database specific
{
    "nvd_published_at": null,
    "severity": "MODERATE",
    "github_reviewed_at": "2026-06-05T16:00:15Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-601"
    ]
}
References

Affected packages

npm / nocodb

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2026.04.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-rvp5-9p55-f5rp/GHSA-rvp5-9p55-f5rp.json"