Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

54yyyu/zotero-mcp
main @ 7096145
8
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Denial of Service: 3 prior fixes. Scrutinize any change in this area.
src/zotero_mcp/server.py: most-fixed (2 issues). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Path Traversal: Path traversal vulnerabilities allowed arbitrary file access and validation bypasses via uncanonicalized paths in server endpoints like the add_from_file tool. Ensuring absolute normalization prior to checking file properties is critical to secure these interfaces.
SSRF: The open-access PDF download tool was vulnerable to Server-Side Request Forgery. It required the implementation of strict DNS resolution validation and manual tracking of redirect hops to prevent internal network scanning.
Path Traversal: Archive extraction operations on downloaded utilities were vulnerable to Arbitrary File Write/Path Traversal via malicious tarfile or zipfile entries. The extraction pipeline requires verification that member paths stay strictly within the target destination.