{"id":"CVE-2024-58351","aliases":["GHSA-5cph-wvm9-45gj"],"title":"Flowise OverrideConfig security vulnerability","summary":"Flowise OverrideConfig security vulnerability","severity":"high","cwe":["CWE-15"],"vendor":"flowise","product":"flowise","ecosystem":"npm","affected":["flowise < 2.1.4"],"patched":["flowise 2.1.4"],"published":"2024-11-21","updated":"2026-09-14","sourceUpdated":"2026-09-14T17:15:31Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-5cph-wvm9-45gj","references":[{"url":"https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-5cph-wvm9-45gj"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58351"},{"url":"https://www.vulncheck.com/advisories/flowise-remote-code-execution-via-overrideconfig-parameter"},{"url":"https://github.com/advisories/GHSA-5cph-wvm9-45gj"}],"tags":["ghsa","npm"],"epss":0.00926,"epssPercentile":0.58985,"ingestedAt":"2026-09-14T18:12:17.167Z","slug":"CVE-2024-58351","body":"## Overview\n\n### Impact\nFlowise allows developers to inject configuration into the Chainflow during execution through the `overrideConfig` option. This is supported in both the frontend web integration and the backend Prediction API. \n\nThis has a range of fundamental issues that are a **major** security vulnerability. \nWhile this feature is intentional, it should have strong protections added and be disabled by default. \n\nThese issues include: \n1. Remote code execution. While inside a sandbox this allows for\n  1. Sandbox escape \n  2. DoS by crashing the server\n  3. SSRF\n2. Prompt Injection, both System and User\n  1. Full control over LLM prompts\n  2. Server variable and data exfiltration\nAnd many many more such as altering the flow of a conversation, prompt exfiltration via LLM proxying etc.\n\nThese issues are self-targeted and do not persist to other users but do leave the server and business exposed. \nAll issues are shown with the API but also work with the web embed.\n\n### Workarounds\n- `overrideConfig` should be disabled by default\n- `overrideConfig` should have an explicit allow list of variables that are allowed to be modified. This way the user opts-in to where modifications can be made. \n- `vm2` and any forks of it should be removed as in the authors own words, \"fixing the vulnerability seems impossible\". The recommended replacement is https://www.npmjs.com/package/isolated-vm\n\n## Affected packages\n\n- `flowise < 2.1.4`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `flowise 2.1.4`","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.2,"exploitation":0,"ransomware":0},"changes":[]}