svg-fetcher
Loads an SVG asset from a supported CDN provider by constructing the appropriate resource URL and retrieving the SVG content. Supports multiple CDN providers and returns the fetched SVG asset for further processing.
This report shows the evidence for svg-fetcher@2.4.1, the only known version.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThis is a concrete remote code execution backdoor, not required for SVG retrieval. Absence of install hooks limits automatic activation but does not remove the malicious exported capability.
Decision evidence
public snapshot- `index.js` exports `getPlugin`, which fetches a hard-coded remote endpoint.
- `index.js` passes server-controlled `data.credits` to `new Function` and executes it with `require`, `process`, and globals.
- `getPlugin()` retries silently and suppresses execution errors.
- `gitlab` contains an OpenSSH private key included in the package.
- `package.json` has no preinstall, install, or postinstall lifecycle hook.
- Remote execution is triggered only when a consumer explicitly calls `getPlugin()`.
- `setDefaultModule()` only fetches CDN content and does not evaluate it.
Source & flagged code
2 flagged · loading sourceSource fingerprint signature matches a known malicious package signature; route for source-aware review.
index.jsView on unpkgFindings
Affected versions and remediation
This report applies to svg-fetcher@2.4.1.
The versions list below shows the verdict for each recorded version.
- Avoid installing svg-fetcher@2.4.1. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.