{"id":"GHSA-hmcr-rmjq-47qr","revision":"e285da4c756b461e93d4c20f4efd1491","records":[{"revision":"e285da4c756b461e93d4c20f4efd1491","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-hmcr-rmjq-47qr","aliases":["CVE-2026-53931"],"title":"NocoDB: Server-Side Request Forgery via Spreadsheet Import Endpoint","description":"### Summary\nThe spreadsheet-import endpoint `axiosRequestMake` could be used as a generic\nHTTP proxy. Before the fix it was reachable unauthenticated, and its\nURL-extension allowlist was a regex tested against the full URL string, so\nURLs whose query string ended in `.csv` (for example\n`https://example.com/robots.txt?.csv`) satisfied the gate even though the\nunderlying request was for `robots.txt`.\n\n### Details\nThree layers of protection now apply to the endpoint:\n\n- The controller is decorated with `@UseGuards(DataApiLimiterGuard, GlobalGuard)`\n  and `@Acl('fetchViaUrl')`, so unauthenticated callers and callers without\n  the editor role are rejected before the request body is processed.\n- The extension allowlist is tested against `url.pathname` only. Callers can\n  no longer satisfy the regex by appending a `.csv` suffix to the query\n  string.\n- The downstream axios call is wired to `useAgent(url)` from\n  `request-filtering-agent`, which blocks RFC 1918, loopback, link-local,\n  and other private destinations at the socket layer.\n\n### Impact\nUnauthenticated callers could previously coerce the NocoDB process to issue\nHTTP requests on their behalf, including to internal services reachable from\nthe host. With the auth gate in place and the pathname-anchored extension\ncheck combined with socket-layer destination filtering, the endpoint is no\nlonger usable as a generic proxy and can no longer reach private ranges.\n\n### Credit\nThis issue was reported by the [GitHub Security Lab](https://securitylab.github.com/)\n([@p-](https://github.com/p-), [@m-y-mo](https://github.com/m-y-mo)).","state":0,"publishedAt":"2026-06-17T14:08:26+00:00","modifiedAt":"2026-07-20T21:30:40.0254619+00:00","affected":[{"ecosystem":"npm","name":"nocodb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"0.301.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/nocodb/nocodb/security/advisories/GHSA-hmcr-rmjq-47qr","https://nvd.nist.gov/vuln/detail/CVE-2026-53931","https://github.com/nocodb/nocodb"],"sourceUrl":"https://github.com/advisories/GHSA-hmcr-rmjq-47qr","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hmcr-rmjq-47qr","identifiers":["GHSA-hmcr-rmjq-47qr","CVE-2026-53931"]},"retained":false,"historicalAffected":[]}],"coverage":[]}