# CVE-2026-61461: langgenius Dify SQL injection in MyScale vector store backend

Source: https://junglewise.ai/threats/cve-2026-61461-langgenius-dify-sql-injection-in-myscale-vector-store-backend  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-10. Updated: 2026-07-10  
License: CC BY 4.0 with a link back

CVE-2026-61461 · Severity: high · CVSS 8.8 · Published 2026-07-10

Dify is an open-source platform used to build and manage AI applications. A security flaw in its MyScale database component allows an attacker with basic user access to run unauthorized database commands. This could lead to the theft of sensitive AI training data, modification of application records, or a complete shutdown of the database service.

Technologies: [Langgenius Dify](https://junglewise.ai/threats/technologies/dify). Vendors: [Langgenius](https://junglewise.ai/threats/vendors/langgenius).

## Quick answers

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

**How severe is CVE-2026-61461?** High severity, with a CVSS score of 8.8, published 10 July 2026.

**Which products and versions are affected?** Langgenius Dify < 1.16.0-rc1.

**Is there a fix for CVE-2026-61461?** A patch was published on 2026-07-02: Fix merged into main branch Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-61461 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-61461?** Check whether you run Langgenius Dify 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

A SQL injection vulnerability exists in the MyScale (ClickHouse) vector store backend of Dify. The root cause is the direct interpolation of user-controlled search queries into ClickHouse SQL statements using f-strings within the `search_by_full_text` method, without proper escaping or parameterization. An authenticated attacker can exploit this by sending a crafted POST request to the `/v1/datasets/{id}/hit-testing` endpoint with a malicious query string. Successful exploitation allows the attacker to read, modify, or delete data within the underlying ClickHouse database. The issue is fixed in version 1.16.0-rc1.

## Affected products

- langgenius Dify < 1.16.0-rc1

## Timeline

- 2026-07-01: disclosed: Issue reported via GitHub issues
- 2026-07-02: patched: Fix merged into main branch
- 2026-07-09: advisory: Release v1.16.0-rc1 published
- 2026-07-10: disclosed: NVD publication date

## References

- [https://github.com/langgenius/dify/commit/d9884efaeea8322706e24c560d2c17e5bf3fab5f](https://github.com/langgenius/dify/commit/d9884efaeea8322706e24c560d2c17e5bf3fab5f)
- [https://github.com/langgenius/dify/issues/38281](https://github.com/langgenius/dify/issues/38281)
- [https://github.com/langgenius/dify/pull/38295](https://github.com/langgenius/dify/pull/38295)
- [https://github.com/langgenius/dify/releases/tag/1.16.0-rc1](https://github.com/langgenius/dify/releases/tag/1.16.0-rc1)
- [https://www.vulncheck.com/advisories/dify-rc1-sql-injection-via-myscale-vector-store-search-by-full-text](https://www.vulncheck.com/advisories/dify-rc1-sql-injection-via-myscale-vector-store-search-by-full-text)

## Related threats

- [langgenius dify hard-coded credentials in sandbox](https://junglewise.ai/threats/cve-2026-123135-a-vulnerability-was-found-in-langgenius-dify-up-to-1-18-0-2-0-0)
- [Dify authorization bypass in MCP server endpoint](https://junglewise.ai/threats/cve-2026-105761-dify-is-an-open-source-llm-app-development-platform-prior-to-1)
- [langgenius dify DOM-based XSS in redirect URL handler](https://junglewise.ai/threats/cve-2026-85022-langgenius-dify-dom-based-xss-in-redirect-url-handler)
- [langgenius Dify DOM-based XSS in splash.tsx redirect](https://junglewise.ai/threats/cve-2026-85021-langgenius-dify-dom-based-xss-in-splash-tsx-redirect)
- [LangGenius Dify server-side template injection in Jinja2 handler](https://junglewise.ai/threats/cve-2026-18632-langgenius-dify-server-side-template-injection-in-jinja2-handler)
