A vulnerability in langgenius/dify v0.10.1 allows an attacker to take over any account, including administrator accounts, by exploiting a weak pseudo-random number generator (PRNG) used for generating password reset codes. The application uses `random.randint` for this purpose, which is not suitable for cryptographic use and can be cracked. An attacker with access to workflow tools can extract the PRNG output and predict future password reset codes, leading to a complete compromise of the application.
CVE ID: CVE-2025-1796
CVSS Base Severity: HIGH
CVSS Base Score: 7.5
CVSS Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor: langgenius
Product: langgenius/dify
EPSS Score: 0.04% (probability of being exploited)
EPSS Percentile: 12.77% (scored less or equal to compared to others)
EPSS Date: 2025-04-18 (when was this score calculated)