wxt-dev / wxt-dev/wxt

`web-ext-run` pins `tmp` bare at `0.2.5`, one patch below the GHSA-ph9p-34f9-6g65 fix

Open Beginner friendly
#2,597 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
10.5k
Forks
564
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

web-ext-run (a dependency of wxt, used for the dev-mode browser launcher) pins tmp as a bare "0.2.5" in its package.json — an exact version, not a caret range. tmp@0.2.5 is affected by GHSA-ph9p-34f9-6g65 (arbitrary file/directory write via symlink in the default tmp dir), fixed in tmp@0.2.6. Because the pin is exact, npm/pnpm/yarn/bun can't resolve past it without a manual override — every wxt consumer currently gets flagged for this on npm audit/bun audit and has to carry an override to clear it.

web-ext-run's own issue tracker is disabled, so filing here since wxt is the umbrella project pulling it in (same pattern as #1949, which covers a different web-ext-run/pino transitive finding).

Ask: widen web-ext-run's tmp dependency to ^0.2.6 (or later) — a manifest-only change, no code impact expected — either directly or by syncing from upstream mozilla/web-ext if it has already moved past this pin.

Reproduction
{
  "name": "foo",
  "private": true,
  "version": "0.0.0",
  "devDependencies": {
    "wxt": "latest"
  }
}
Steps to reproduce
  1. npm install
  2. npm audit
  3. Observe the tmp GHSA-ph9p-34f9-6g65 finding via wxt → web-ext-run → tmp@0.2.5
System Info
System:
  OS: Linux
Binaries:
  Node: 22.x
  npm: 10.x
npmPackages:
  wxt: latest => (pulls web-ext-run, which pins tmp@0.2.5)
Used Package Manager

npm

Validations
  • Read the Contributing Guidelines.
  • Read the docs.
  • Checked there isn't already an issue reporting this — #1949 and #1426 cover different dependencies (pino/fast-redact and deprecated glob/inflight/rimraf respectively), not tmp.
  • This is a concrete bug (an unpatched CVE in a pinned transitive dependency), not a Q&A question.
  • Reproduction provided above (audit output is the reproducible artifact here, same as #1949).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the dependency manifest or lockfile that brings in web-ext-run and verify its tmp@0.2.5 pin. Check whether mozilla/web-ext has already updated it, then widen or sync the dependency and rerun the npm install and npm audit reproduction; done means the vulnerable tmp version is no longer selected.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
security, tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.