Skip to main content

Dify CVE-2026-6619

| EUVDEUVD-2026-23809 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-04-20 VulDB
2.0
CVSS 4.0 · NVD

Severity by source

NVD PRIMARY
2.0 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
P
Scope
X

Lifecycle Timeline

9
Severity Changed
Apr 29, 2026 - 01:12 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:12 NVD
5.1 (MEDIUM) 2.0 (LOW)
PoC Detected
Apr 29, 2026 - 01:00 vuln.today
Public exploit code
Severity Changed
Apr 20, 2026 - 09:37 NVD
LOW MEDIUM
CVSS changed
Apr 20, 2026 - 09:37 NVD
3.5 (LOW) 5.1 (MEDIUM)
Analysis Generated
Apr 20, 2026 - 08:57 vuln.today
EUVD ID Assigned
Apr 20, 2026 - 08:45 euvd
EUVD-2026-23809
Analysis Generated
Apr 20, 2026 - 08:45 vuln.today
CVE Published
Apr 20, 2026 - 08:00 nvd
LOW 2.0

DescriptionCVE.org

A vulnerability has been found in langgenius dify up to 1.13.3. Impacted is the function openInNewTab of the file web/app/components/base/image-uploader/image-preview.tsx of the component ImagePreview. The manipulation of the argument filename leads to cross site scripting. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

AnalysisAI

Cross-site scripting in Dify's ImagePreview component (web/app/components/base/image-uploader/image-preview.tsx) allows authenticated users to inject malicious scripts via the filename argument in the openInNewTab function, affecting versions up to 1.13.3. The vulnerability requires user interaction (UI:R) and authenticated access (PR:L), limiting impact to low integrity compromise with no confidentiality or availability impact. Publicly available exploit code exists; vendor has not responded to early disclosure.

Technical ContextAI

The ImagePreview component in Dify's web application fails to properly sanitize the filename parameter before using it in the openInNewTab function, leading to stored or reflected cross-site scripting (CWE-79). Dify is a large language model (LLM) application development platform written in React/TypeScript. The vulnerable code path accepts user-controlled filename input-likely from image metadata or upload form fields-and inserts it unsanitized into DOM operations or URL construction without HTML encoding or Content Security Policy (CSP) protections. The attack surface is the image upload and preview functionality, a common user-facing feature in web applications. CPE cpe:2.3:a:langgenius:dify identifies the Dify application by Langgenius across all versions up to and including 1.13.3.

RemediationAI

Upgrade Dify to a version released after the vendor's response to this disclosure; exact patched version not confirmed from available data - check the Dify GitHub repository (https://github.com/langgenius/dify) for releases dated after the CVE publication or review pull requests addressing CWE-79 in the ImagePreview component. In the immediate term, implement input validation and output encoding in the openInNewTab function to HTML-encode or URI-encode the filename parameter before rendering it in DOM or constructing URLs; this prevents script injection while preserving legitimate filenames with special characters. Apply a Content Security Policy (CSP) header with script-src directive set to 'self' and a nonce-based or hash-based approach to restrict inline script execution, mitigating XSS payloads even if filename sanitization is bypassed. If using Dify in a multi-tenant environment, segregate user sessions with frame-ancestry or X-Frame-Options headers to limit session hijacking scope. Monitor image upload logs for suspicious filenames containing script tags or event handlers (e.g., '<img src=x onerror=alert()>') and block uploads matching such patterns. These controls carry minimal performance overhead but require coordination with development and security teams to deploy.

More in Dify

View all
CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

CVE-2026-41948 CRITICAL POC
9.3 May 18

Path traversal in Dify versions 0 through 1.14.1 allows authenticated tenants to escape their authorized tenant path and

CVE-2026-41947 CRITICAL POC
9.3 May 18

Cross-tenant authorization bypass in LangGenius Dify versions through 1.14.1 lets any logged-in editor reroute another t

CVE-2025-1796 HIGH POC
8.8 Mar 20

A vulnerability in langgenius/dify v0.10.1 allows an attacker to take over any account, including administrator accounts

CVE-2026-61461 HIGH POC
8.7 Jul 10

SQL injection in Dify's MyScale vector store backend (versions before 1.16.0-rc1) lets authenticated attackers execute a

CVE-2026-41949 HIGH POC
8.2 May 18

Cross-tenant document disclosure in Dify 1.14.1 and prior allows any authenticated user to read up to 3,000 characters o

CVE-2024-12039 HIGH POC
8.1 Mar 20

langgenius/dify version v0.10.1 contains a vulnerability where there are no limits applied to the number of code guess a

CVE-2024-12776 HIGH POC
8.1 Mar 20

In langgenius/dify v0.10.1, the `/forgot-password/resets` endpoint does not verify the password reset code, allowing an

CVE-2025-43862 HIGH POC
7.6 Apr 25

Dify is an open-source LLM app development platform. Rated high severity (CVSS 7.6), this vulnerability is remotely expl

CVE-2024-11824 HIGH POC
7.6 Mar 20

A stored cross-site scripting (XSS) vulnerability exists in langgenius/dify version latest, specifically in the chat log

CVE-2024-11822 HIGH POC
7.5 Mar 20

langgenius/dify version 0.9.1 contains a Server-Side Request Forgery (SSRF) vulnerability. Rated high severity (CVSS 7.5

CVE-2025-3466 HIGH POC
7.2 Jul 07

CVE-2025-3466 is a security vulnerability (CVSS 7.2). Risk factors: public PoC available. Vendor patch is available.

Share

CVE-2026-6619 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy