{"answers":{"affected":"3 open source packages ship an affected version, including github.com/donknap/dpanel.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-30206 exists.","fix":"Upgrade github.com/donknap/dpanel to 1.6.1 or later.","what":"CVE-2025-30206 is a critical vulnerability in donknap dpanel, published on 15 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-30206 and fix it if it is affected.\n\nWhat it is: CVE-2025-30206 is a critical vulnerability in donknap dpanel, published on 15 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-30206 exists.\n\nAffected packages and fixed versions:\n- github.com/donknap/dpanel (Go): affected all versions; fixed in 1.6.1\n- github.com/donknap/dpanel (Go): affected all versions; fixed in 1.6.1\n- github.com/donknap/dpanel (Go): affected all versions; fixed in 1.6.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-30206/ (Markdown: https://insights.sbomify.com/CVE-2025-30206/index.md)","id":"CVE-2025-30206","markdown":"https://insights.sbomify.com/CVE-2025-30206/index.md","name":"CVE-2025-30206","record":{"aliases":["GHSA-j752-cjcj-w847","GO-2025-3612"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Docker management panel","requires_auth":"none","summary":"Attackers can exploit a hardcoded JWT secret in Dpanel to forge tokens, bypass authentication, and execute arbitrary code on the host.","user_interaction":"not_required","vuln_class":"hardcoded_credentials"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-547","name":"Use of Hard-coded, Security-relevant Constants"},{"id":"CWE-453","name":"Insecure Default Variable Initialization"},{"id":"CWE-321","name":"Use of Hard-coded Cryptographic Key"}],"description":"Dpanel is a Docker visualization panel system which provides complete Docker management functions. The Dpanel service contains a hardcoded JWT secret in its default configuration, allowing attackers to generate valid JWT tokens and compromise the host machine. This security flaw allows attackers to analyze the source code, discover the embedded secret, and craft legitimate JWT tokens. By forging these tokens, an attacker can successfully bypass authentication mechanisms, impersonate privileged users, and gain unauthorized administrative access. Consequently, this enables full control over the host machine, potentially leading to severe consequences such as sensitive data exposure, unauthorized command execution, privilege escalation, or further lateral movement within the network environment. This issue is patched in version 1.6.1. A workaround for this vulnerability involves replacing the hardcoded secret with a securely generated value and load it from secure configuration storage.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Dpanel's hard-coded JWT secret leads to remote code execution","id":"CVE-2025-30206","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"hardcoded_credentials","year":"2025"},"n_packages":3,"n_references":1,"next":{"headline":"Kirby vulnerable to path traversal in the router for PHP's built-in server","id":"CVE-2025-30207"},"packages":[{"ecosystem":"Go","fixed":["1.6.1"],"introduced":["0"],"last_affected":[],"package":"github.com/donknap/dpanel","purl":null,"source":"GHSA-j752-cjcj-w847"},{"ecosystem":"Go","fixed":["1.6.1"],"introduced":["0"],"last_affected":[],"package":"github.com/donknap/dpanel","purl":"pkg:golang/github.com/donknap/dpanel","source":"GHSA-j752-cjcj-w847"},{"ecosystem":"Go","fixed":["1.6.1"],"introduced":["0"],"last_affected":[],"package":"github.com/donknap/dpanel","purl":"pkg:golang/github.com/donknap/dpanel","source":"GO-2025-3612"}],"prev":{"headline":"kanidm-provision leaks provisioned admin credentials into the system log","id":"CVE-2025-30205"},"products":["dpanel"],"published":"2025-04-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-15","vendors":["donknap"]},"summary":"Attackers can exploit a hardcoded JWT secret in Dpanel to forge tokens, bypass authentication, and execute arbitrary code on the host.","url":"https://insights.sbomify.com/CVE-2025-30206/"}