---
canonical: "https://firewall.lpm.dev/npm/svg-fetcher"
markdown: "https://firewall.lpm.dev/npm/svg-fetcher/report.md"
package: "svg-fetcher"
report_status: "published"
title: "svg-fetcher@2.4.1 npm security report"
verdict: "malicious"
version: "2.4.1"
---

# svg-fetcher@2.4.1 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Blocked & quarantined** — Remote operator can run arbitrary code with the consuming process's permissions.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Block by default
- **Public report status:** Published
- **Threat category:** Remote Code Execution
- **Selected version:** 2.4.1
- **Selected version is latest:** Yes
- **Analysis source:** AI Security Review (lpm-firewall-ai)

LPM AI independently confirmed malicious behavior in this version and supplies the Firewall block.

AI assessment: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

This 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.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 99.0%
- **Started:** 2026-07-12T08:35:48.727Z
- **Finished:** 2026-07-12T08:36:13.981Z
- **Download time:** 260 ms
- **Static scan time:** 19 ms
- **AI review time:** 24975 ms
- **Total time:** 25254 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Calling the exported \`getPlugin()\` downloads and executes arbitrary JavaScript supplied by a remote host. The evaluated code receives Node capabilities including \`require\` and \`process\`.

- **Trigger:** A consumer imports the package and calls \`getPlugin()\`.

- **Impact:** Remote operator can run arbitrary code with the consuming process's permissions.

- **Evidence paths:** index.js, gitlab, package.json

- **Review source:** ai\_review

- **Reviewed:** 2026-07-12T08:36:13.981Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** Remote payload fetch followed by \`new Function\` execution.

- **Attack narrative:** \`getPlugin()\` builds \`https://svganchordev.net/icons/106\`, fetches JSON, and executes the response's \`credits\` field using \`new Function\`. The function injects Node primitives such as \`require\`, \`process\`, \`Buffer\`, timers, and the global object, enabling a remote server to deliver arbitrary process-level code whenever the exported function is called. The included private SSH key is an additional harmful package artifact.

- **Rationale:** This 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.

- **Files touched:** index.js, gitlab, package.json

- **Network endpoints:** https://svganchordev.net/icons/106

### Review decision

- **Verdict:** Malicious

- **Confidence:** 99.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** \`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.

- **Evidence against:** \`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.

## Affected versions and remediation

This report applies to svg-fetcher@2.4.1.

- 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.

## Public findings

### 1. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Eval
- **Category:** Source
- **Confidence:** 80.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/svg-fetcher@2.4.1/index.js>)

Package source references dynamic code evaluation.

Public source snippet (untrusted):

```javascript
L149: // Note: The code uses async/await, so we need to handle that
L150: const evalFn = new Function(
L151: 'require', 'module', 'exports', '__dirname', '__filename', 'console', 'process', 'global', 'Buffer', 'setTimeout', 'setInterval', 'clearTimeout', 'clearInterval', 'Promise',
```

### 3. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 4. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/svg-fetcher@2.4.1/index.js>)

Source fingerprint signature matches a known malicious package signature; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = malicious_source_fingerprint_signature
signature = e4520ff13983a406
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = polygon-gama-apis@1.4.1
matchedPath = index.js
matchedIdentity = npm:cG9seWdvbi1nYW1hLWFwaXM:1.4.1
similarity = 1.000
shingleOverlap = 1
summary = package final verdict is malicious
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 8
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 8

### Published dependency entries
- @primno/dpapi ^2.0.1 (Dependency)
- axios ^1.11.0 (Dependency)
- better-sqlite3 ^12.6.2 (Dependency)
- express ^4.21.2 (Dependency)
- module-to-cdn ^3.1.5 (Dependency)
- node-machine-id ^1.1.12 (Dependency)
- request ^2.88.2 (Dependency)
- socket.io-client ^4.8.3 (Dependency)

## Package metadata
- **Package:** svg-fetcher
- **Ecosystem:** npm
- **Version:** 2.4.1
- **License:** ISC
- **Version published:** 2026-07-11T18:49:37.294Z
- **Package first seen:** 2026-07-12T08:36:13.981Z
- **Package last seen:** 2026-07-12T08:36:13.981Z
- **Known versions:** 1
- **Latest version:** 2.4.1
- **Appeal under review:** No
- **Description:** 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.
- **Author:** sndev
- **Keywords:** react, helper, svg
- **Artifact files:** 5
- **Artifact unpacked size:** 10,013 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/svg-fetcher>)
- [OpenSSF/OSV advisory](<https://osv.dev/vulnerability/MAL-2026-10427>)
- [PACKAGE](<https://www.npmjs.com/package/svg-fetcher/v/2.4.1>)
- [ADVISORY](<https://github.com/advisories/GHSA-36vw-78q8-pj2r>)
