cnki-export

Warn

Audited by Socket on Sep 15, 2026

1 alert found:

Anomaly
AnomalyLOW
scripts/push_to_zotero.py

This module is primarily a legitimate Zotero ingestion/attachment uploader, but it carries a meaningful misuse risk when processing untrusted JSON. The code can (1) download PDFs from attacker-controlled URLs without validation and (2) forward an input-provided 'cookies' string as an HTTP Cookie header to those destinations, enabling credential/session-token forwarding and SSRF-like behavior from the machine running the script. No clear evidence of intentional malware/backdoor behavior is present in this fragment (no exec/subprocess/persistence), but security review and input validation/allowlisting for pdfUrl and strict handling of cookies are strongly recommended.

Confidence: 72%Severity: 58%
Audit Metadata
Analyzed At
Sep 15, 2026, 02:57 AM
Package URL
pkg:socket/skills-sh/cookjohn%2Fcnki-skills%2Fcnki-export%2F@328fa639a57b509f1b569c77199ededcb78480f1f198a7462184b2b3486b884c
Security Audit — socket — cnki-export