Admin account takeover through weak Pseudo-Random number generator used in generating…
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| langgenius | langgenius/dify | up to latest | — | No fix listed | CNA |
- langgenius/dify Vendorlanggenius Affected up to latest Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:langgenius:dify:0.10.1:*:*:*:*:node.js:*:* | 0.10.1 | Vulnerable | langgenius |
- cpe:2.3:a:langgenius:dify:0.10.1:*:*:*:*:node.js:*:* Versions 0.10.1 Vulnerable ·langgenius
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2025-1796
- 2026-10-03 Alias added: GHSA-cvg9-334x-w586
References
More langgenius Dify vulnerabilities
- TI-2025-35265 Default credentials in Dify thru 1.5.1. CVSS 3.1CRITICAL 9.8
- TI-2025-03045 Unsanitized Input in langgenius/dify CVSS 3.1HIGH 7.2
- TI-2026-30470 Dify Vulnerable to Stored XSS via SVG-file upload CVSS 4.0MEDIUM 6.9
- TI-2024-11840 Authentication Bypass in langgenius/dify CVSS 3.0HIGH 8.1
- TI-2024-11170 Improper Restriction of Excessive Authentication Attempts in langgenius/dify CVSS 3.1HIGH 8.1
- TI-2024-09502 Code Injection in langgenius/dify CVSS 3.1HIGH 7.2
Sources
- CVE-2025-1796 · CVE Program
- CVE-2025-1796 · NVD
- FIRST EPSS
- GHSA-cvg9-334x-w586 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences