png2svg
Audited by Socket on Jul 30, 2026
2 alerts found:
Anomalyx2This fragment itself appears to be an image-to-vector processing utility, with no explicit malware behaviors (no network/subprocess/credential theft) visible. The primary risk is supply-chain/code-injection: it dynamically locates a local png2svg “skill” directory (including from an environment variable and broad cwd/home searches), prepends it to sys.path, and then imports multiple executable modules from there—making import-time arbitrary code execution possible if the resolved directory is attacker-controlled or replaced. Treat this as a meaningful security risk and require trusted, pinned, or verified library paths; otherwise malicious code in the imported png2svg package could run with the user’s privileges.
No explicit malicious payload is visible in this module (no network/exfiltration, no subprocess execution, no credential theft). However, the code introduces a significant supply-chain/code-execution risk by dynamically modifying sys.path and importing png2svg.model from a directory selected via an unvalidated environment variable and a broad filesystem search. If an attacker can influence PNG2SVG_SKILL or the candidate directory layout, arbitrary code in the resolved png2svg.model could be executed. The remaining logic primarily performs local JSON-driven geometry generation and project file updates.