GHSA-vx5p-q85x-xm3c

Suggest an improvement
Source
https://github.com/advisories/GHSA-vx5p-q85x-xm3c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-vx5p-q85x-xm3c/GHSA-vx5p-q85x-xm3c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vx5p-q85x-xm3c
Aliases
Published
2026-03-02T19:36:29Z
Modified
2026-03-04T15:17:37Z
Severity
  • 5.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
NocoDB has Stored Cross-site Scripting via Formula Cell
Details

Summary

A stored XSS vulnerability exists in the Formula virtual cell. Formula results containing URI::() patterns are rendered via v-html without sanitization, allowing injected HTML to execute.

Details

The replaceUrlsWithLink() function in urlUtils.ts converts URI::(url) patterns to <a> tags but passes all other HTML through unchanged. A user with Creator role (minimum role for formula field creation) can craft a formula like CONCAT("URI::(https://example.com)", "<img src=x onerror=...>") to inject arbitrary scripts rendered for all viewers.

Impact

Credential theft via script execution in the context of users viewing the table.

Credit

This issue was reported by @Akokonunes.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-02T19:36:29Z",
    "nvd_published_at":  "2026-03-02T17:16:33Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / nocodb

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.301.3

Database specific

last_known_affected_version_range
"<= 0.301.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-vx5p-q85x-xm3c/GHSA-vx5p-q85x-xm3c.json"