CVE-2025-49149: langgenius dify · Cross-site Scripting
Affects langgenius difySource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHublanggenius/difypkg:github/langgenius/difyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediate mitigation should focus on input validation and output encoding: Implement strict server-side input sanitization to neutralize potentially malicious characters or scripts before rendering user input in web pages.
- Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts and reduce the impact of injected code.
- Use web application firewalls (WAFs) configured with rules to detect and block common XSS attack patterns targeting Dify endpoints.
- Restrict user privileges and session lifetimes to limit the window of opportunity for attackers leveraging stolen credentials.
- Monitor web application logs for unusual input patterns or repeated injection attempts to identify potential exploitation attempts early.
- Engage with the langgenius community or maintainers to track patch releases and apply updates promptly once available.
- For organizations with development capabilities, consider contributing or implementing temporary patches or filters to sanitize inputs in the affected version.
- Educate users about the risks of clicking on suspicious links or interacting with untrusted content within applications built on Dify.
- Isolate Dify deployments in segmented network zones to limit lateral movement if exploitation occurs. These measures go beyond generic advice by focusing on immediate protective controls tailored to the nature of the vulnerability and the platform’s usage context.
Description
Dify is an open-source LLM app development platform. In version 1.2.0, there is insufficient filtering of user input by web applications. Attackers can use website vulnerabilities to inject malicious script code into web pages. This may result in a cross-site scripting (XSS) attack when a user browses these web pages. At time of posting, there is no known patched version.