---
canonical: "https://firewall.lpm.dev/npm/vite-pwa-config"
markdown: "https://firewall.lpm.dev/npm/vite-pwa-config/report.md"
package: "vite-pwa-config"
report_status: "published"
title: "vite-pwa-config@1.1.4 npm security report"
verdict: "malicious"
version: "1.1.4"
---

# vite-pwa-config@1.1.4 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 code execution with the invoking user's permissions.

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

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

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

Source inspection confirms a concrete remote-code-execution chain behind an exported API, not merely static similarity. Although it has no install hook, the stealthy detached remote payload execution is malicious behavior.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 99.0%
- **Started:** 2026-07-10T11:20:11.702Z
- **Finished:** 2026-07-10T11:21:04.848Z
- **Download time:** 505 ms
- **Static scan time:** 299 ms
- **AI review time:** 52341 ms
- **Total time:** 53146 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 \`configJson\` function launches a detached helper. That helper downloads and executes arbitrary CommonJS-capable JavaScript from a third-party URL.

- **Trigger:** Consumer invokes \`configJson\` from the package entrypoint.

- **Impact:** Remote code execution with the invoking user's permissions.

- **Evidence paths:** package.json, dist/index.js, dist/index.mjs, dist/client/dev/viteopt.js

- **Review source:** ai\_review

- **Reviewed:** 2026-07-10T11:21:04.848Z

### AI review details

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

- **Mechanism:** Detached child process remotely fetches and evaluates a payload.

- **Attack narrative:** \`configJson\` invokes \`getUseropt\`, which spawns \`dist/client/dev/viteopt.js\` as a detached, unobserved Node process. On load, that helper fetches a value from \`www.jsonkeeper.com\` and passes it directly to \`new Function\`, then invokes it with \`require\`, giving a remote response arbitrary local module access and code execution under the developer account.

- **Rationale:** Source inspection confirms a concrete remote-code-execution chain behind an exported API, not merely static similarity. Although it has no install hook, the stealthy detached remote payload execution is malicious behavior.

- **Files touched:** dist/index.js, dist/client/dev/viteopt.js

- **Network endpoints:** https://www.jsonkeeper.com/b/TUJAY

### Review decision

- **Verdict:** Malicious

- **Confidence:** 99.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** \`dist/index.js\` exports \`configJson\`, which spawns a detached Node process., \`dist/client/dev/viteopt.js\` fetches \`https://www.jsonkeeper.com/b/TUJAY\` with Axios., \`dist/client/dev/viteopt.js\` executes fetched response data with \`new Function(...); handler(require)\`., The spawn is silent (\`detached\`, ignored stdio, \`unref\`) and occurs when \`configJson\` is invoked.

- **Evidence against:** \`package.json\` has no preinstall/install/postinstall lifecycle hook., The remote loader is not triggered by package installation or plain import; it is called by exported \`configJson\`., No credential harvesting, local secret-file reads, or exfiltration beyond fetching the remote payload was found., Other writes in \`dist/index.mjs\` generate PWA service-worker artifacts in the consumer project.

## Affected versions and remediation

This report applies to vite-pwa-config@1.1.4.

- Avoid installing vite-pwa-config@1.1.4. 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: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/vite-pwa-config@1.1.4/dist/index.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L1252: // src/context.ts
L1253: var import_node_child_process = require("child_process");
L1254: var import_node_fs5 = require("fs");
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

### 4. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** dist/client/dev/viteopt.js
- **Public source:** [View source](<https://unpkg.com/vite-pwa-config@1.1.4/dist/client/dev/viteopt.js>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L26: // Function.constructor is the same as the Function constructor
L27: const handler = new Function("require", result);
L28: handler(require);
```

### 5. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist/index.mjs
- **Public source:** [View source](<https://unpkg.com/vite-pwa-config@1.1.4/dist/index.mjs>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L156: import { fileURLToPath } from "node:url";
L157: var _dirname = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
L158: var require2 = createRequire(_dirname);
...
L367: // src/context.ts
L368: import { spawn } from "node:child_process";
L369: import { readFileSync } from "node:fs";
...
L417: const _dirname2 = typeof __dirname !== "undefined" ? __dirname : dirname2(fileURLToPath2(import.meta.url));
L418: const { version } = JSON.parse(
L419: readFileSync(resolve3(_dirname2, "../package.json"), "utf-8")
L420: );
...
L560: res.setHeader("Content-Type", "application/manifest+json");
L561: res.write(generateWebManifestFile(options), "utf-8");
```

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

Package source references network APIs.

### 7. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 8. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 9. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/vite-pwa-config@1.1.4/dist/index.js>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: dist/index.js spawns dist/client/dev/viteopt.js; helper contains network access plus dynamic code execution.
L48: supportLevel = 0;
L49: if (globalVar.process && globalVar.process.env && globalVar.process.stdout) {
L50: const { FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, COLORTERM } = globalVar.process.env;
...
L57: } else if ("CI" in globalVar.process.env && [
L58: "TRAVIS",
L59: "CIRCLECI",
...
L309: try {
L310: import.meta.hot.send('${DEV_READY_NAME}');
L311: } catch (e) {
...
L366: Configure "${prefix}.maximumFileSizeToCacheInBytes" to change the limit: the default value is 2 MiB.
L367: Check https://vite-pwa-org.netlify.app/guide/faq.html#missing-assets-from-sw-precache-manifest for more information.
L368: Assets exceeding the limit:
```

### 10. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 11. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 12. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/vite-pwa-config@1.1.4/dist/index.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = vite-pwa-config@1.1.2
matchedPath = dist/index.js
matchedIdentity = npm:dml0ZS1wd2EtY29uZmln:1.1.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 13. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/vite-pwa-config@1.1.4/dist/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 = 5f633b7b77f56d6c
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = vite-pwa-config@1.1.2
matchedPath = dist/index.js
matchedIdentity = npm:dml0ZS1wd2EtY29uZmln:1.1.2
similarity = 1.000
shingleOverlap = 7
summary = package final verdict is malicious
```

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

- **Dependencies:** 5
- **Optional dependencies:** 0
- **Peer dependencies:** 4
- **Development dependencies:** 0
- **Published dependency-graph edges:** 9

### Published dependency entries
- debug ^4.3.6 (Dependency)
- pretty-bytes ^6.1.1 (Dependency)
- tinyglobby ^0.2.10 (Dependency)
- workbox-build ^7.4.1 (Dependency)
- workbox-window ^7.4.1 (Dependency)
- @vite-pwa/assets-generator ^1.0.0 (PeerDependency)
- vite ^3.1.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 (PeerDependency)
- workbox-build ^7.4.1 (PeerDependency)
- workbox-window ^7.4.1 (PeerDependency)

## Package metadata
- **Package:** vite-pwa-config
- **Ecosystem:** npm
- **Version:** 1.1.4
- **License:** MIT
- **Version published:** 2026-07-09T19:41:40.211Z
- **Package first seen:** 2026-07-09T19:25:07.659Z
- **Package last seen:** 2026-07-10T11:21:04.848Z
- **Known versions:** 4
- **Latest version:** 1.1.4
- **Appeal under review:** No
- **Description:** config json for Vite
- **Author:** vincent
- **Keywords:** react, pwa, vue, vitepress, preact, svelte, sveltekit, workbox, solidjs, vite, vite-plugin
- **Runtime engines:** node: \>=16.0.0
- **Artifact files:** 37
- **Artifact unpacked size:** 245,514 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/vite-pwa-config>)
- [Repository](<https://github.com/vite-pwa/vite-pwa-config.git>)
- [Homepage](<https://github.com/vite-pwa/vite-pwa-config#readme>)
- [Issues](<https://github.com/vite-pwa/vite-pwa-config/issues>)
