Skip to main content
VulnerabilityPublished

CVE-2025-49149: langgenius dify · Cross-site Scripting

Affects langgenius difySource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHublanggenius/difypkg:github/langgenius/difyOther threatsAffected
  • =1.2.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. 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.
  2. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts and reduce the impact of injected code.
  3. Use web application firewalls (WAFs) configured with rules to detect and block common XSS attack patterns targeting Dify endpoints.
  4. Restrict user privileges and session lifetimes to limit the window of opportunity for attackers leveraging stolen credentials.
  5. Monitor web application logs for unusual input patterns or repeated injection attempts to identify potential exploitation attempts early.
  6. Engage with the langgenius community or maintainers to track patch releases and apply updates promptly once available.
  7. For organizations with development capabilities, consider contributing or implementing temporary patches or filters to sanitize inputs in the affected version.
  8. Educate users about the risks of clicking on suspicious links or interacting with untrusted content within applications built on Dify.
  9. 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.

References

Community reviews

Loading reviews…