# CVE-2026-73407: Budibase REST datasource credential theft via cross-origin auth leak

Source: https://junglewise.ai/threats/cve-2026-73407-budibase-rest-datasource-credential-theft-via-cross-origin-auth  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-24. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-73407 · Severity: info · CVSS 9.8 · Published 2026-07-24

Budibase is a low-code platform that allows users to create data-driven applications using REST APIs as data sources. This vulnerability allows an unauthenticated attacker to steal stored API credentials (authentication tokens and static headers) by crafting a malicious query that redirects requests to an attacker-controlled server, exposing sensitive authentication secrets that are normally masked in the UI.

Technologies: [@budibase/server (npm)](https://junglewise.ai/threats/technologies/budibase-server). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-73407 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-73407 being exploited in the wild.

**How severe is CVE-2026-73407?** Informational severity, with a CVSS score of 9.8, published 24 July 2026.

**Which products and versions are affected?** @budibase/server (npm) SEMVER:introduced=0,last_affected=3.38.1.

**Is there a fix for CVE-2026-73407?** A patch was published on 2026-07-22: Fixed in version 3.40.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-73407 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-73407?** Check whether you run @budibase/server (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a credential leak in the REST datasource integration (packages/server/src/integrations/rest.ts). The root cause is that authentication headers and static headers are attached to outgoing HTTP requests before the destination URL is validated. The getUrl() function allows query paths starting with "http://" or "https://" to be treated as absolute URLs, or can be user-supplied via parameters like {{ t }}, bypassing the configured datasource base URL. No same-origin validation occurs between the resolved request host and the datasource's configured host before credentials are sent. Because queries can be published with PUBLIC role and execute under a minimal authorization check (QUERY, WRITE), an unauthenticated attacker can invoke the vulnerable endpoint POST /api/v2/queries/:queryId with a crafted parameter that redirects the request to an attacker-controlled server, where the credentials are sent in cleartext despite being masked elsewhere in the API. Patch available in version 3.40.0.

## Affected products

- Budibase Budibase <3.40.0

## Identifiers

- CVE-2026-73407
- GHSA-mqhr-6j6h-74p5

## Timeline

- 2026-07-22: disclosed
- 2026-07-22: patched: Fixed in version 3.40.0

## References

- [https://github.com/Budibase/budibase/security/advisories/GHSA-mqhr-6j6h-74p5](https://github.com/Budibase/budibase/security/advisories/GHSA-mqhr-6j6h-74p5)
- [https://github.com/Budibase/budibase/pull/19239](https://github.com/Budibase/budibase/pull/19239)

## Related threats

- [Budibase S3 signed upload URL issuance via attachments endpoint](https://junglewise.ai/threats/cve-2026-54356-budibase-s3-signed-upload-url-issuance-via-attachments-endpoint)
- [Budibase automation SSRF in webhook and integration steps](https://junglewise.ai/threats/cve-2026-35219-budibase-automation-ssrf-in-webhook-and-integration-steps)
- [Budibase S3 presigned URL authorization regression](https://junglewise.ai/threats/cve-2026-72859-budibase-s3-presigned-url-authorization-regression)
- [Budibase MySQL DESCRIBE backtick injection via multipleStatements](https://junglewise.ai/threats/cve-2026-73408-budibase-mysql-describe-backtick-injection-via-multiplestatements)
- [Budibase privilege escalation in public role assignment API](https://junglewise.ai/threats/cve-2026-73305-budibase-privilege-escalation-in-public-role-assignment-api)
