SB2025061648 - Multiple vulnerabilities in Dify



SB2025061648 - Multiple vulnerabilities in Dify

Published: June 16, 2025 Updated: July 28, 2026

Security Bulletin ID SB2025061648
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 2
Exploitation vector Remote access
Highest impact Data manipulation

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 2 vulnerabilities.


1) Cross-site scripting (CVE-ID: CVE-2025-49149)

CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]


The vulnerability allows a remote attacker to execute arbitrary script code in a victim's browser.

The vulnerability exists due to cross-site scripting in the input box when rendering user-supplied input. A remote attacker can submit a specially crafted payload to execute arbitrary script code in a victim's browser.

User interaction is required for another user to browse the crafted content.


2) Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (CVE-ID: N/A)

CWE-ID: CWE-338 - Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

CVSSv4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to predict generated API keys.

The vulnerability exists due to use of a cryptographically weak pseudo-random number generator in the generate_api_key() method and generate_string() function when generating API keys. A remote attacker can predict or reproduce API keys to predict generated API keys.

This issue stems from the use of Python's random module, which relies on the deterministic Mersenne Twister algorithm for security-sensitive key generation.


Remediation

Install update from vendor's website.