---
canonical: "https://firewall.lpm.dev/npm/qunitx-cli"
markdown: "https://firewall.lpm.dev/npm/qunitx-cli/report.md"
package: "qunitx-cli"
report_status: "published"
title: "qunitx-cli@0.42.0 npm security report"
verdict: "policy_finding"
version: "0.42.0"
---

# qunitx-cli@0.42.0 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: dependency script approvals** — Approved dependency install scripts could execute during the install without the user's explicit consent.

- **Verdict:** Dependency script approval policy finding
- **Product-default install policy:** Block by default
- **Firewall policy:** Block by default
- **Public report status:** Published
- **Threat category:** Dependency script approval abuse
- **Selected version:** 0.42.0
- **Selected version is latest:** Yes
- **Analysis source:** AI security review (lpm-firewall-ai)

This finding concerns install-time expansion of the consumer project's dependency script approvals without explicit informed approval. The published action protects a security boundary; this behavior alone does not establish malicious author intent.

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

The package's install hook automatically passes Deno an explicit approval for npm:playwright-core lifecycle scripts. This matches install-time dependency script approval abuse, even though the inspected dependency manifest currently has no lifecycle scripts.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-10-31T09:06:41.533Z
- **Finished:** 2026-10-31T09:07:29.833Z
- **Download time:** 512 ms
- **Static scan time:** 6009 ms
- **AI review time:** 41777 ms
- **Total time:** 48300 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:** The postinstall grants Deno install-script approval to npm:playwright-core during package installation.

- **Trigger:** Automatic postinstall when this package is installed, if Deno is available.

- **Impact:** Approved dependency install scripts could execute during the install without the user's explicit consent.

- **Evidence paths:** package.json

- **Review source:** ai\_review

- **Reviewed:** 2026-10-31T09:07:29.833Z

### AI review details

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

- **Mechanism:** Runs \`deno install\` with \`--allow-scripts=npm:playwright-core\`, authorizing lifecycle scripts for that dependency.

- **Attack narrative:** During installation, the package's postinstall runs Deno with an explicit script-approval flag for npm:playwright-core. That grants the dependency permission to run lifecycle scripts without a separate user request.

- **Rationale:** The package's install hook automatically passes Deno an explicit approval for npm:playwright-core lifecycle scripts. This matches install-time dependency script approval abuse, even though the inspected dependency manifest currently has no lifecycle scripts.

### Review decision

- **Verdict:** Malicious

- **Confidence:** 91.0%

- **Recommended action:** publish\_block

- **Intent class:** Dangerous Capability

- **False-positive risk:** Low

- **Evidence for block:** The automatic postinstall invokes \`deno install --allow-scripts=npm:playwright-core\`, granting that dependency lifecycle-script approval during installation.

- **Evidence against:** The package is described as a browser test runner and supports running tests with Node.js or Deno., The postinstall sets \`PLAYWRIGHT\_SKIP\_DOWNLOAD=true\`; the inspected playwright-core manifest lists no lifecycle scripts.

## Affected versions and remediation

This report applies to qunitx-cli@0.42.0.

- Avoid installing qunitx-cli@0.42.0. 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's installer ran, inspect changes to package.json allowScripts and restore the approvals you explicitly reviewed. Check which dependency scripts ran; newly granted approvals do not prove immediate execution or credential theft.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = PLAYWRIGHT_SKIP_DOWNLOAD=true deno install --allow-scripts=npm:playwright-core || true
```

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = PLAYWRIGHT_SKIP_DOWNLOAD=true deno install --allow-scripts=npm:playwright-core || true
```

### 3. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

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

Package declares npm scripts.

### 5. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/qunitx.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/bin/qunitx.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L6: import nodeModule, { createRequire } from 'node:module';
L7: import { spawn } from 'node:child_process';
L8: import { access, constants, readFile } from 'node:fs/promises';
```

### 6. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/dist/cli.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L12166: if (!unzipped) {
L12167: await run8("powershell", [
L12168: "-NoProfile",
```

### 7. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/dist/cli.js>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L18491: }
L18492: eval(input, options) {
L18493: const next = this.#tail.then(() => this.#eval(input, false, options?.whole === true));
```

### 8. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/dist/index.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L3371: async function readTemplate(relativePath) {
L3372: const sea = await import("node:sea").catch(() => null);
L3373: if (sea?.isSea()) return sea.getAsset(relativePath, "utf8");
```

### 9. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/dist/index.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L94: const line = `# [qunitx] ignored (${context}): ${format(error2)}`;
L95: if (NODE_PROCESS?.stderr) NODE_PROCESS.stderr.write(`${line}
L96: `);
...
L184: try {
L185: return JSON.parse(JSON.stringify(data));
L186: } catch {
...
L960: "lib/utils/color.ts"() {
L961: colorEnabled = !process.env.NODE_DISABLE_COLORS && process.env.NO_COLOR == null && process.env.TERM !== "dumb" && (process.env.FORCE_COLOR != null && process.env.FORCE_COLOR !== "0...
L962: colors = createColors(colorEnabled);
...
L1665: #controller;
L1666: /** Typed `unknown` rather than `T` on purpose. A private field is checked structurally, so
L1667: *  putting `T` in a parameter position here would make the whole class INVARIANT in `T` —
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 13. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/dist/cli.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L23: function findChromeSync() {
L24: if (process.env.CHROME_BIN) return process.env.CHROME_BIN;
L25: for (const dir2 of PATH_DIRS) {
...
L39: "lib/chrome/find.ts"() {
L40: CANDIDATES = process.platform === "win32" ? ["chrome.exe", "chromium.exe", "google-chrome.exe"] : ["google-chrome-stable", "google-chrome", "chromium", "chromium-browser"];
L41: PATH_DIRS = (process.env.PATH || "").split(delimiter).filter(Boolean);
...
L123: const line = `# [qunitx] ignored (${context}): ${format(error2)}`;
L124: if (NODE_PROCESS?.stderr) NODE_PROCESS.stderr.write(`${line}
L125: `);
...
L213: try {
L214: return JSON.parse(JSON.stringify(data));
L215: } catch {
```

### 14. High: Obfuscated Payload Loader
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/dist/index.js>)

Source contains an obfuscated payload loader that reconstructs and executes hidden code.

Public source snippet (untrusted):

```javascript
L94: const line = `# [qunitx] ignored (${context}): ${format(error2)}`;
L95: if (NODE_PROCESS?.stderr) NODE_PROCESS.stderr.write(`${line}
L96: `);
...
L184: try {
L185: return JSON.parse(JSON.stringify(data));
L186: } catch {
...
L960: "lib/utils/color.ts"() {
L961: colorEnabled = !process.env.NODE_DISABLE_COLORS && process.env.NO_COLOR == null && process.env.TERM !== "dumb" && (process.env.FORCE_COLOR != null && process.env.FORCE_COLOR !== "0...
L962: colors = createColors(colorEnabled);
...
L1665: #controller;
L1666: /** Typed `unknown` rather than `T` on purpose. A private field is checked structurally, so
L1667: *  putting `T` in a parameter position here would make the whole class INVARIANT in `T` —
```

### 15. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/dist/cli.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/cli.js spawns dist/index.js; helper contains network access plus dynamic code execution.
L23: function findChromeSync() {
L24: if (process.env.CHROME_BIN) return process.env.CHROME_BIN;
L25: for (const dir2 of PATH_DIRS) {
...
L39: "lib/chrome/find.ts"() {
L40: CANDIDATES = process.platform === "win32" ? ["chrome.exe", "chromium.exe", "google-chrome.exe"] : ["google-chrome-stable", "google-chrome", "chromium", "chromium-browser"];
L41: PATH_DIRS = (process.env.PATH || "").split(delimiter).filter(Boolean);
...
L123: const line = `# [qunitx] ignored (${context}): ${format(error2)}`;
L124: if (NODE_PROCESS?.stderr) NODE_PROCESS.stderr.write(`${line}
L125: `);
...
L213: try {
L214: return JSON.parse(JSON.stringify(data));
L215: } catch {
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 18. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 19. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** lib/args/parse.ts\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/lib/args/parse.ts%23virtual%3Anormalized%3Around1>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 18
```

### 20. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/dist/cli.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 = qunitx-cli@0.41.0
matchedPath = dist/cli.js
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 21. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/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 = qunitx-cli@0.41.0
matchedPath = dist/index.js
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 22. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bin/qunitx.js
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/bin/qunitx.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 = qunitx-cli@0.41.0
matchedPath = bin/qunitx.js
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 23. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/commands/repl/editor.ts
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/lib/commands/repl/editor.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = qunitx-cli@0.41.0
matchedPath = lib/commands/repl/editor.ts
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 24. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/commands/daemon/index.ts
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/lib/commands/daemon/index.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = qunitx-cli@0.41.0
matchedPath = lib/commands/daemon/index.ts
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 25. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/commands/upgrade/install.ts
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/lib/commands/upgrade/install.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = qunitx-cli@0.41.0
matchedPath = lib/commands/upgrade/install.ts
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 26. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/repl/session.ts
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/lib/repl/session.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = qunitx-cli@0.41.0
matchedPath = lib/repl/session.ts
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 27. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/setup/web-server.ts
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/lib/setup/web-server.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = qunitx-cli@0.41.0
matchedPath = lib/setup/web-server.ts
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 28. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/chrome/prelaunch.ts
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/lib/chrome/prelaunch.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = qunitx-cli@0.41.0
matchedPath = lib/chrome/prelaunch.ts
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 29. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/commands/repl/completion.ts
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/lib/commands/repl/completion.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = qunitx-cli@0.41.0
matchedPath = lib/commands/repl/completion.ts
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 30. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/commands/repl/index.ts
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/lib/commands/repl/index.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = qunitx-cli@0.41.0
matchedPath = lib/commands/repl/index.ts
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 31. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/utils/open-output-in-browser.ts
- **Public source:** [View source](<https://unpkg.com/qunitx-cli@0.42.0/lib/utils/open-output-in-browser.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = qunitx-cli@0.41.0
matchedPath = lib/utils/open-output-in-browser.ts
matchedIdentity = npm:cXVuaXR4LWNsaQ:0.41.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall, prepublishOnly
- **Dependencies:** 3
- **Optional dependencies:** 1
- **Peer dependencies:** 0
- **Development dependencies:** 9
- **Published dependency-graph edges:** 4

### Published dependency entries
- esbuild 0.28.2 (Dependency)
- playwright-core 1.64.1 (Dependency)
- ws ^8.22.0 (Dependency)
- qunitx-cli-linux-x64 0.42.0 (OptionalDependency)

## Package metadata
- **Package:** qunitx-cli
- **Ecosystem:** npm
- **Version:** 0.42.0
- **License:** MIT
- **Version published:** 2026-10-31T09:02:59.155Z
- **Package first seen:** 2026-08-13T06:20:38.833Z
- **Package last seen:** 2026-11-11T06:28:38.905Z
- **Known versions:** 23
- **Latest version:** 0.42.0
- **Appeal under review:** No
- **Description:** Browser runner for QUnitx: run your qunitx tests in google-chrome
- **Author:** Izel Nakri
- **Keywords:** test runner, testing, browser, ci, qunit, qunitx
- **Runtime engines:** deno: \>=2.7.0, node: \>=24.0.0
- **Artifact files:** 362
- **Artifact unpacked size:** 4,488,300 bytes
- **Artifact signatures:** 2
- **Attestations:** No

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