Description
Dify before 1.16.0-rc1 contains a SQL injection vulnerability in the MyScale vector store backend that allows attackers to execute arbitrary SQL by supplying unsanitized search parameters to the search_by_full_text method without escaping or parameterization. Attackers can inject malicious SQL through the search parameters to read, modify, or delete data in the underlying ClickHouse database.
Published: 2026-07-10
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Dify before 1.16.0-rc1 processes search parameters in the MyScale vector store backend without sanitization, permitting attackers to supply malicious input through the search_by_full_text method. The malicious input is directly interpolated into SQL statements that are executed on the underlying ClickHouse database, enabling arbitrary SQL injection. This flaw is a classic SQL injection weakness (CWE-89) that can compromise confidentiality and integrity of the data stored in the vector store.

Affected Systems

The affected product is Dify by langgenius, all releases that use the MyScale vector store and expose the search_by_full_text API are vulnerable. Earlier versions such as 1.15.x remain impacted until a patch is applied.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity, while the EPSS score shows a very low exploitation probability (<1%). The vulnerability is not listed in CISA’s KEV catalog. Attackers would likely exploit it remotely by sending crafted requests to the public API endpoint that invokes search_by_full_text; based on the description, the likely attack vector is remote HTTP exploitation. If successful, they could run arbitrary SQL against the ClickHouse database, potentially reading, modifying, or deleting data.

Generated by OpenCVE AI on July 29, 2026 at 10:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Dify to version 1.16.0-rc1 or later, where the search_by_full_text function sanitizes input.
  • If upgrading is not possible, validate or escape all search parameters before passing them to ClickHouse as a temporary workaround.
  • Restrict access to the Dify API so that only trusted IP ranges or authenticated users can interact with the vector store.
  • Monitor logs for unusual or repeated SQL query patterns that may indicate injection attempts.

Generated by OpenCVE AI on July 29, 2026 at 10:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 14 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:langgenius:dify:*:*:*:*:*:node.js:*:*

Fri, 10 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Langgenius
Langgenius dify
Vendors & Products Langgenius
Langgenius dify

Fri, 10 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Description Dify before 1.16.0-rc1 contains a SQL injection vulnerability in the MyScale vector store backend that allows attackers to execute arbitrary SQL by supplying unsanitized search parameters to the search_by_full_text method without escaping or parameterization. Attackers can inject malicious SQL through the search parameters to read, modify, or delete data in the underlying ClickHouse database.
Title Dify < 1.16.0-rc1 SQL Injection via MyScale Vector Store search_by_full_text
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-14T22:03:38.857Z

Reserved: 2026-07-09T14:07:55.624Z

Link: CVE-2026-61461

cve-icon Vulnrichment

Updated: 2026-07-10T18:54:30.501Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T10:30:05Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')