Is firecrawl/firecrawl safe?
What firecrawl/firecrawl does
Firecrawl turns websites into LLM-ready data, such as Markdown, structured JSON and screenshots, through scrape, search, crawl and interact APIs, and is available as a hosted service at firecrawl.dev or self-hosted. It is published in the firecrawl/firecrawl repository, primarily under AGPL-3.0, with MIT-licensed SDKs. Clients send requests to the Firecrawl API with an API key (FIRECRAWL_API_KEY), and the repository's server code includes network, shell, filesystem and install-time execution. Before installing, check that the AGPL-3.0 terms fit your use if you self-host or modify the server, and use a separate API key per project.
- Python shell/command execution
- Node.js shell/command execution
- npm install-time lifecycle hook
What to do: The Java, PHP, Rust, C#, Ruby, Go, Elixir and Kotlin code was not checked for shell, network or file access, so this result is incomplete. Review that code before installing.
firecrawl/firecrawl is a GitHub repository analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. Its Java, PHP, Rust, C#, Ruby, Go, Elixir and Kotlin code was not checked for shell, network or file access, so this result is partial. It can: delegated authentication, dynamic code execution, filesystem read, filesystem write, install time execution, mcp tools detected, network egress, scoped identity and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
firecrawl
Get notified when this component changes
Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of firecrawl/firecrawl'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 (14)
The code turns strings into live code at runtime (eval / new Function / exec).
const result = await getRedisConnection().eval(
await redisRateLimitClient.eval(
(await getRedisConnection().eval(
pipeline.eval(
redisRateLimitClient.eval(
redisRateLimitClient.eval(
redisRateLimitClient.eval(
const result = (await redisRateLimitClient.eval(
const total = (await redisRateLimitClient.eval(
const result = await redisRateLimitClient.eval(
await redisRateLimitClient.eval(
await redisSpurClient.eval(RELEASE_LOCK_SCRIPT, 1, lockKey(ip), token);
await redisEvictConnection.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.
package.json runs scripts automatically when the package is installed.
"install": "pnpm build"
Why it matters: Install scripts are a favorite supply-chain foothold — they execute on every machine that installs the package.
Fix: Inspect the hook command. Install-time scripts are a common supply chain execution vector; ensure they do nothing beyond a documented build step.
The component can run operating-system commands or spawn processes.
import { spawnSync } from "node:child_process";return spawnSync(command, args, {import { spawn } from "node:child_process";const child = spawn(
import { type ChildProcess, spawn } from "child_process";child = spawn("cmd", ["/c", command], {child = spawn("sh", ["-c", command], {child = spawn(cmd, args, {const killer = spawn(
Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.
Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; prefer execFile with an argument array.
The component can run operating-system commands or spawn processes.
return subprocess.check_output(["git", *args], text=True).strip()
Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.
Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; avoid shell=True.
The component reads files from disk.
const load = JSON.parse(await fs.readFile(mockPath, "utf8"));
const data = fs.readFileSync("/sys/fs/cgroup/memory.current", "utf8");const data = fs.readFileSync("/sys/fs/cgroup/memory.max", "utf8").trim();const data = fs.readFileSync("/sys/fs/cgroup/cpu.stat", "utf8");const data = fs.readFileSync(cpusetPath, "utf8").trim();
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 writes or deletes files on disk.
await fs.appendFile(this.filePath, this.lines.join("\n") + "\n");await fs.unlink(tempFilePath);
await fs.writeFile(
Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
The component reads files from disk.
version_file = Path(file_path).read_text()
with open(file_path, 'r') as file:
build_file = Path(file_path).read_text()
version_file = Path(file_path).read_text()
csproj_file = Path(file_path).read_text()
version_file = Path(file_path).read_text()
version_file = Path(os.path.join(package_path, '__init__.py')).read_text()
file_bytes = file_path.read_bytes()
names = (dist.read_text("top_level.txt") or "").split()version_file = (package_path / "__init__.py").read_text()
long_description_content = (this_directory / "README.md").read_text()
version_file = (this_directory / "firecrawl" / "__init__.py").read_text()
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 writes or deletes files on disk.
with open(github_output, "a", encoding="utf-8") as output:
Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
package.json has a 'prepare' script (runs on git/local installs and before publishing).
"prepare": "cd ../.. && husky ./apps/api/.husky",
Why it matters: Usually a build step, but confirm it doesn't fetch or run remote code.
Fix: Usually a legitimate build step; confirm it only builds and does not fetch or execute remote code.
The component makes outbound network requests.
const response = await fetch(url, {fetch(healthUrl, { signal: AbortSignal.timeout(2_000) }).then(const response = await fetch(`${config.FIRE_ENGINE_BETA_URL}/scrape`, {const resp = await fetch(
const recentRes = await fetch(
const upstream = await fetch(
const upstream = await fetch(
return await fetch(
const passthrough = await fetch(
const upstream = await fetch(target, {import http from "node:http";
import https from "node:https";
upstream = await fetch(url, {const response = await fetch(
fetch(input, {const res = await fetch(`${config.AVGRAB_SERVICE_URL}/supported-urls`);const response = await fetch(`${config.AVGRAB_SERVICE_URL}/resolve`, {const response = await fetch(firstScreen, {const response = await fetch(`${baseUrl}${EXCHANGE_PROVIDERS_PATH}`, {const response = await fetch(`${baseUrl}/v1/tool-feedback`, {const response = await fetch(input.url, {response = await fetch(url, {response = await fetch(`${config.FIRE_PRIVACY_URL}/redact`, {response = await fetch(
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.
The component makes outbound network requests.
import requests
response = requests.get(f"https://pypi.org/pypi/{package_name}/json")response = requests.get(f"https://registry.npmjs.org/{package_name}/latest")response = requests.get(f"https://rubygems.org/api/v1/versions/{package_name}/latest.json")response = requests.get(url)
response = requests.get(url)
response = requests.get(url)
response = requests.get(
f"https://crates.io/api/v1/crates/{package_name}",
headers={"User-Agent": "firecrawl-version-check"}
)import requests
response = requests.post(
f"{args.api_url}/run",
json={
"experiment_id": args.experiment_id,
"api_key": args.api_key,
"label": args.label
},
hea …import requests
import aiohttp
response = requests.post(
f'{self.api_url}/v1/scrape',
headers=_headers,
json=scrape_params,
timeout=(timeout / 1000.0 + 5 if timeout is not None else None)
)response = requests.post(
f"{self.api_url}/v1/search",
headers={"Authorization": f"Bearer {self.api_key}"},
json=params_dict
)response = requests.post(
f"{self.api_url}/v1/map",
headers={"Authorization": f"Bearer {self.api_key}"},
json=params_dict
)response = requests.post(url, headers=headers, json=data, timeout=((data["timeout"] / 1000.0 + 5) if "timeout" in data and data["timeout"] is not None else None))
response = requests.get(url, headers=headers)
response = requests.delete(url, headers=headers)
raise requests.exceptions.HTTPError(message, response=response)
async with aiohttp.ClientSession() as session:
raise aiohttp.ClientError(f'Failed to parse Firecrawl error response as JSON. Status code: {response.status}')raise aiohttp.ClientError(message)
async with aiohttp.ClientSession() as session:
raise aiohttp.ClientError(f'Failed to parse Firecrawl error response as JSON. Status code: {response.status}')raise aiohttp.ClientError(message)
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.
An OAuth 2.0 / OpenID Connect delegated-authentication flow was detected (authorization-code / refresh-token / token-exchange grant, an OIDC authorize/discovery endpoint or id_token, or a delegation library). Tools authenticate with the end user's delegated, scoped credentials rather than a long-lived embedded service credential. (2 occurrence(s) shown as evidence).
if (res.status === 200 && typeof res.body.id_token === "string") {subjectHash = await verifyWorldIdIdToken(res.body.id_token);
Fix: Delegated auth is a lower-blast-radius execution context than an embedded static credential. Confirm the requested scopes are minimal and that tokens are never logged or forwarded off-host.
A short-lived, scoped, assumed identity was detected - an STS AssumeRole / session token, a cloud managed or workload identity, an impersonated service account, a projected Kubernetes service-account token, or a dynamic-secret broker. Tools authenticate with a narrowly-scoped credential that expires, rather than a long-lived embedded service credential.
import { WorkloadIdentityAuth } from "openai/auth/workload-identity-auth";Fix: A scoped, short-lived identity is the smallest-blast-radius execution context. Confirm the assumed role / requested scope grants only the permissions the tool needs, and that the token lifetime is minimal.
An MCP tool surface (manifest or tool definitions) was found.
const server = new Server({Why it matters: Just context — review which tools it offers and their permissions.
Fix: Review the declared MCP tools and their permissions.
How attackers abuse these capabilities
Interactive labs on the attack class behind the rules above. They show the technique, not anything found in firecrawl/firecrawl.
Maintain firecrawl/firecrawl?
The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.
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 →