GHSA-xg5g-26x8-cvf4: Budibase: DNS rebinding SSRF bypasses remain in OpenAPI import and REST query execution
A builder-level user can make Budibase issue server-side HTTP requests to loopback or private-network targets by using DNS rebinding against two outbound fetch paths that are still not pinned to the validated DNS answer.
The first path is OpenAPI query import. It validates the supplied hostname with the blacklist and then performs a separate raw fetch. A hostname that resolves to a public address during validation and to 127.0.0.1 during the request is accepted.
The second path is REST datasource/query execution. It calls the fixed fetchWithBlacklist() helper, but provides a custom undici fetchFn that installs a dispatcher. The helper passes a pinned Node agent, but undici uses the dispatcher and resolves the original hostname again at connection time. This defeats the DNS pinning added for the previous outbound fetch advisory.
Impact is authenticated SSRF from the Budibase server process. An attacker with the relevant builder/query privileges can reach loopback or private HTTP services that should be blocked by Budibase’s outbound fetch protections, subject to the normal response handling of each feature.
References
- github.com/Budibase/budibase/commit/1fecb3fc3497e8db7b60b42cc514ce304ffe3a41
- github.com/Budibase/budibase/commit/5758bdb242802ca20c4ed0dc579e4330ee898ef3
- github.com/Budibase/budibase/commit/586802b5706367520d14245e18a7d0cabab0be11
- github.com/Budibase/budibase/pull/19178
- github.com/Budibase/budibase/releases/tag/3.39.30
- github.com/Budibase/budibase/security/advisories/GHSA-xg5g-26x8-cvf4
- github.com/advisories/GHSA-xg5g-26x8-cvf4
Code Behaviors & Features
Detect and mitigate GHSA-xg5g-26x8-cvf4 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →