Is D4Vinci/Scrapling safe?
What D4Vinci/Scrapling does
Scrapling is a Python web scraping framework covering HTTP requests, browser automation, parsing and crawling. It installs from PyPI with pip install scrapling and needs Python 3.10 or later; the base package is only the parser, and the fetchers extra plus the scrapling install command download browsers and their system dependencies. Its Fetcher class sends HTTP requests that can impersonate a browser's TLS fingerprint, and StealthyFetcher drives Chromium or Chrome, including handling Cloudflare Turnstile challenges. An MCP server from the ai extra lets AI agents fetch pages, take screenshots and extract data, and an Agent Skill teaches coding agents the library. Before scraping a site, check its terms.
- Unsafe deserialization
- Python shell/command execution
- Python network egress
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
D4Vinci/Scrapling is a GitHub repository analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 1 risky construct is reported for review. It can: filesystem read, filesystem write, mcp tools detected, network egress and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 20/100 (low).
scrapling 0.5.1
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 D4Vinci/Scrapling'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 (6)
It loads data with a format that can rebuild arbitrary objects (e.g. pickle, or unsafe YAML).
data: CheckpointData = pickle.loads(content)
Why it matters: Feeding such a loader untrusted data can execute code hidden inside that data.
Fix: Deserialize untrusted data with a safe format/loader: JSON, or yaml.safe_load / Loader=SafeLoader. Reserve pickle/marshal for data you fully control.
The component can run operating-system commands or spawn processes.
_ = check_output(cmd, shell=False) # nosec B603
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.
browsers = loads(path.read_bytes()).get("browsers", [])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.
shutil.rmtree(path)
with open(fd, "w", encoding=page.encoding) as f:
with open(filename, "w", encoding=page.encoding if extension == "html" else "utf-8") as f:
file.write_bytes(orjson.dumps(list(self), option=options))
with open(path, "wb") as f:
with open(file, "w", newline="", encoding="utf-8") as f:
await file.write_text(item["markdown"], encoding="utf-8")
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 makes outbound network requests.
import requests
req = requests.get("https://books.toscrape.com/index.html")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 MCP tool surface (manifest or tool definitions) was found.
server.add_tool(
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 D4Vinci/Scrapling.
Maintain D4Vinci/Scrapling?
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 →