CVE-2025-56157: dify · Use of Hard-coded Credentials
Affects difySource CVE Database V5
Not known to be exploited · CVSS 9.8 Critical.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 18 Dec 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
Users should ensure that PostgreSQL is not exposed externally, as per the supplier's configuration starting from version 1.0.1. Additionally, users must change default credentials immediately if the database is accessible to prevent unauthorized access. Monitor vendor advisories for any forthcoming official fixes or updates.
Description
Default credentials in Dify thru 1.5.1. PostgreSQL username and password specified in the docker-compose.yaml file included in its source code. NOTE: the Supplier reports that the Docker configuration does not make PostgreSQL (on TCP port 5432) exposed by default in version 1.0.1 or later.
References
- github.com/langgenius/dify (opens in a new tab)
- gist.github.com/Cristliu/216ddbadaf3258498c93d408683ecabd (opens in a new tab)
- gist.github.com/Cristliu/298f51cbc72c45d91632cd0d65aa8161 (opens in a new tab)
- github.com/langgenius/dify/releases/tag/1.0.1 (opens in a new tab)
- github.com/langgenius/dify/issues/15285 (opens in a new tab)
- github.com/langgenius/dify/pull/15286 (opens in a new tab)
- github.com/langgenius/dify/pull/15286.diff (opens in a new tab)