This package matches a known-malicious advisory (MAL-2026-4750) and is blocked by ShadowCanopy by default across every project. 1 flagged version.
All flagged files are tests or doc-generation scripts (Playwright screenshot helpers + SSE edge-case tests). The subprocess + localhost httpx calls start the project's own dev server to capture docs images; the \u2028/\x0b cases are explicit test vectors for format_sse_event. No malicious behavior in library code.
AI breakdown
Plain-English summary of what this package does and how it behaves.
Package named fastapi version 0.162.0, described as the FastAPI framework for building high-performance APIs. Sample files consist of LICENSE, README, and numerous documentation/tutorial Python examples. Static findings report multiple instances of obfuscated source files, remote fetch with process execution, and hardcoded public IPs.
Capabilities
- Obfuscated source file
- Remote fetch with process execution
- Hardcoded public IP in network code
Data access
- None observed
Network
- Remote fetch with process execution
- Hardcoded public IP in network code
Presented as a web framework with extensive docs but includes multiple static findings for remote execution and obfuscation that warrant code review before installation.
Dependency & execution chain
Every package this one pulls in, colored by verdict. Expand to walk the tree.
Security findings (22)
Static analysis rule matches, with the exact code that triggered them.
Multiple obfuscation patterns in tests/test_sse.py
Multiple obfuscation patterns in fastapi-0.162.0/tests/test_sse.py
File scripts/playwright/cookie_param_models/image01.py combines network access with process execution
File fastapi-0.162.0/scripts/playwright/cookie_param_models/image01.py combines network access with process execution
File scripts/playwright/header_param_models/image01.py combines network access with process execution
File fastapi-0.162.0/scripts/playwright/header_param_models/image01.py combines network access with process execution
File scripts/playwright/json_base64_bytes/image01.py combines network access with process execution
File fastapi-0.162.0/scripts/playwright/json_base64_bytes/image01.py combines network access with process execution
File scripts/playwright/query_param_models/image01.py combines network access with process execution
File fastapi-0.162.0/scripts/playwright/query_param_models/image01.py combines network access with process execution
File scripts/playwright/request_form_models/image01.py combines network access with process execution
File fastapi-0.162.0/scripts/playwright/request_form_models/image01.py combines network access with process execution
File scripts/playwright/sql_databases/image01.py combines network access with process execution
File fastapi-0.162.0/scripts/playwright/sql_databases/image01.py combines network access with process execution
File scripts/playwright/sql_databases/image02.py combines network access with process execution
File fastapi-0.162.0/scripts/playwright/sql_databases/image02.py combines network access with process execution
File scripts/sponsors.py combines network access with process execution
File fastapi-0.162.0/scripts/sponsors.py combines network access with process execution
File tests/test_telemetry/test_semantic_conventions.py contains a hardcoded public IP (2001:db8::1) used in network code — review for hidden exfiltration or C2 endpoints.
File fastapi-0.162.0/tests/test_telemetry/test_semantic_conventions.py contains a hardcoded public IP (2001:db8::1) used in network code — review for hidden exfiltration or C2 endpoints.
File tests/test_tutorial/test_extra_data_types/test_tutorial001.py contains a hardcoded public IP (15:30:00) used in network code — review for hidden exfiltration or C2 endpoints.
File fastapi-0.162.0/tests/test_tutorial/test_extra_data_types/test_tutorial001.py contains a hardcoded public IP (15:30:00) used in network code — review for hidden exfiltration or C2 endpoints.
Package metadata
FastAPI framework, high performance, easy to learn, fast to code, ready for production
Files in package (500)
How ShadowCanopy checks PyPI packages
ShadowCanopy blocks every dependency by default and only lets through what it can verify — against live malicious-package advisories, an AI behavior scan, and a byte-for-byte hash check. It protects installs across npm, PyPI, crates.io, pkg.go.dev, RubyGems, Maven Central, NuGet, Packagist, Hex, pub.dev, Swift Package Manager.
Other PyPI packages
This report reflects ShadowCanopy's threat intelligence at page load and is informational, not a warranty. Canonical URL: https://shadowcanopy.dev/packages/pypi/fastapi