nature-downloader
Audited by Socket on Aug 23, 2026
1 alert found:
AnomalyNo definitive malicious/backdoor behavior is visible in the provided fragment. The code primarily performs automated downloading of PDFs and optional Supporting Information, and then writes a manifest/summary. The main supply-chain/security concerns are (1) dynamic execution via evalJs in the browser-context for DOM scraping, and (2) downloading and writing files derived from URLs extracted from untrusted remote HTML without visible host/scheme allowlisting in this excerpt. Review the evalJs implementation, URL validation/allowlisting, proxy egress controls, and the path construction/saving logic in fetchAnyToFile/fetchToFile and articleBundleDirectory to ensure robust protection against SSRF, path traversal/overwrite, and unintended downloads.