# CVE-2026-2531: MindsDB SSRF via URL validation bypass in File Upload

Source: https://junglewise.ai/threats/cve-2026-2531-mindsdb-ssrf-via-url-validation-bypass-in-file-upload  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-02-16. Updated: 2026-06-06  
License: CC BY 4.0 with a link back

CVE-2026-2531 · Severity: medium · CVSS 6.3 · Published 2026-02-16

MindsDB, an open-source platform for building AI applications, is vulnerable to a security flaw in its file upload and URL validation components. An attacker can bypass security filters to force the server to make unauthorized requests to internal or external systems. This could allow an attacker to access sensitive internal data, scan private networks, or disrupt internal services.

Technologies: [mindsdb (PyPI)](https://junglewise.ai/threats/technologies/mindsdb). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

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

**How severe is CVE-2026-2531?** Medium severity, with a CVSS score of 6.3, published 16 February 2026.

**Which products and versions are affected?** mindsdb (PyPI) <= 25.14.1, ECOSYSTEM:introduced=0,fixed=26.0.0rc1, ECOSYSTEM:introduced=0,last_affected=25.14.1.

**Is there a fix for CVE-2026-2531?** Yes. mindsdb (PyPI): upgrade to 26.0.0rc1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-2531 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-2531?** Check whether you run mindsdb (PyPI) 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.

## How to fix

- mindsdb (PyPI): upgrade to 26.0.0rc1 or later

  ```sh
  pip install "mindsdb>=26.0.0rc1"
  ```


## Technical details

A Server-Side Request Forgery (SSRF) vulnerability exists in MindsDB up to version 25.14.1 within the `_split_url` function of `mindsdb/utilities/security.py`. The root cause is the use of `urlparse().netloc` for origin validation, which includes the 'userinfo' component (e.g., user:pass@host). An attacker can craft a URL containing userinfo (e.g., `http://attacker@127.0.0.1`) to bypass blocklists that only check for the IP address or hostname. This allows a remote authenticated attacker to perform unauthorized requests to internal network services. A patch has been developed to replace `netloc` with a combination of `hostname` and `port` to properly strip userinfo during validation.

## Affected products

- MindsDB MindsDB <= 25.14.1

## Identifiers

- CVE-2026-2531
- GHSA-6xw9-2p64-7622
- PYSEC-2026-91

## Timeline

- 2026-02-10: patched: Pull request with fix submitted to GitHub repository
- 2026-02-16: disclosed: Vulnerability disclosed and CVE-2026-2531 assigned
- 2026-02-16: advisory: GitHub Advisory GHSA-6xw9-2p64-7622 published

## References

- [https://github.com/mindsdb/mindsdb/issues/12163](https://github.com/mindsdb/mindsdb/issues/12163)
- [https://github.com/mindsdb/mindsdb/pull/12213](https://github.com/mindsdb/mindsdb/pull/12213)
- [https://github.com/themavik/mindsdb/commit/74d6f0fd4b630218519a700fbee1c05c7fd4b1ed](https://github.com/themavik/mindsdb/commit/74d6f0fd4b630218519a700fbee1c05c7fd4b1ed)
- [https://vuldb.com/?ctiid.346119](https://vuldb.com/?ctiid.346119)
- [https://vuldb.com/?id.346119](https://vuldb.com/?id.346119)

## Related threats

- [PYSEC-2026-2648 - MindsDB has an Improper Access Control Issue](https://junglewise.ai/threats/cve-2026-7711-mindsdb-has-an-improper-access-control-issue)
- [PYSEC-2026-1628 - MindsDB Cross-site Scripting vulnerability](https://junglewise.ai/threats/cve-2024-45856-mindsdb-cross-site-scripting-in-web-ui)
- [PYSEC-2026-1629 - MindsDB Eval Injection vulnerability](https://junglewise.ai/threats/cve-2024-45847-mindsdb-eval-injection-vulnerability)
- [MindsDB path traversal in /api/files leading to RCE](https://junglewise.ai/threats/cve-2026-27483-mindsdb-path-traversal-in-api-files-leading-to-rce)
- [MindsDB path traversal in file upload API](https://junglewise.ai/threats/cve-2025-68472-mindsdb-path-traversal-in-file-upload-api)
