Is langfuse safe?
- Python dynamic code execution
- Python network egress
- Python filesystem read
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
langfuse is a PyPI package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: dynamic code execution, filesystem read and network egress — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
langfuse 4.17.0
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of langfuse's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (3)
The code turns strings into live code at runtime (eval / new Function / exec).
return eval()
Why it matters: If those strings aren't fixed and trusted, they become a way to run arbitrary code.
Fix: Avoid evaluating dynamically constructed code; if unavoidable, ensure the input is a trusted constant and never derived from external data.
The component reads files from disk.
with open(file_path, "rb") as file:
Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.
Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.
The component makes outbound network requests.
import httpx
import urllib.request
import httpx
self.httpx_client = httpx.Client(
timeout=self.timeout, headers=client_headers
)if sys.platform == "darwin" and not urllib.request.getproxies_environment():
import httpx
import httpx
import httpx
else httpx.Client(
timeout=_defaulted_timeout, follow_redirects=follow_redirects
)else httpx.Client(timeout=_defaulted_timeout),
else httpx.AsyncClient(
timeout=_defaulted_timeout, follow_redirects=follow_redirects
)else httpx.AsyncClient(timeout=_defaulted_timeout),
return requests()
import httpx
headers["Authorization"] = httpx.BasicAuth(username, password)._auth_header
import httpx
from httpx._types import RequestFiles
import httpx
import httpx
import httpx
import httpx
else httpx.get(self.url, timeout=timeout)
else httpx.get(
media_data.url, timeout=content_fetch_timeout_seconds
)Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.
Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →