Repository navigation
Description
Summary
Two transitive development dependencies are locked at versions with published fixes. Neither is shipped to players; this is a routine refresh.
Where
package-lock.json:3533package-lock.json:6602package.json:26package.json:30
Details
npm audit --json at this commit reports 2 vulnerabilities (1 critical, 1 moderate), both transitive and dev-only, both fixAvailable: true. (a) cross-spawn 7.0.6 (package-lock.json:3533-3534), pulled in by eslint@10.15.0: GHSA-ghv9-86vm-4v8m "Command injection on Windows when spawning batch files" (critical, range >=7.0.0 <7.1.0) and GHSA-m6qr-m48x-3xhh "Argument injection on Windows via backslashes before a double quote" (high, range >=7.0.4 <7.1.0). (b) terser 5.51.2 (package-lock.json:6602-6603), pulled in by vite-plugin-pwa@2.0.0 > workbox-build@7.4.1 > @rollup/plugin-terser@1.0.0 and as vite's optional peer: GHSA-6jpm-p5cq-9q44 "Input sourcemap sourcesContent leaks" (moderate, range >=5.0.0 <5.51.3). The parents accept the fixed versions without any manifest change: eslint declares cross-spawn ^7.0.6 (node_modules/eslint/package.json:146), @rollup/plugin-terser declares terser ^5.17.4 (node_modules/@rollup/plugin-terser/package.json:52). The open Dependabot PR #148 (5 direct bumps) does not touch either package (checked its diff).
Impact
Not shown reachable, so a routine upgrade, not a sensitive one. cross-spawn: eslint only calls it on the --init, --inspect-config and --env-info paths (node_modules/eslint/bin/eslint.js:72, node_modules/eslint/lib/cli.js:269, node_modules/eslint/lib/shared/runtime-info.js:13); the project runs eslint . (package.json:16), the advisories are Windows-only, and CI runs on ubuntu-latest (.github/workflows/ci.yml:16, .github/workflows/deploy.yml:18). terser: workbox-build runs it over the generated service worker in production mode (node_modules/workbox-build/build/lib/bundle.js:56-57), but the leak needs input source maps and the build has none: vite.config.ts sets no build.sourcemap, vite-plugin-pwa then sets workbox.sourcemap to false (node_modules/vite-plugin-pwa/dist/index.js:878-880), and the existing dist/ holds no .map file. Neither package ships to players (lockfile prod set is only phaser@4.2.1 and eventemitter3@5.0.4). The real cost is that npm audit is red with a critical on every install, which hides any new advisory behind known noise.
Steps to reproduce
npm audit in a clean checkout of 0391275.
Suggested fix
Run npm audit fix (lockfile only; moves cross-spawn to >=7.1.0 and terser to >=5.51.3), then npm run lint && npm test && npm run build, and commit package-lock.json. Checklist for the same routine batch, already proposed by Dependabot PR #148: @types/node 22.20.5 to 22.20.7, eslint 10.15.0 to 10.16.0, typescript-eslint 8.73.0 to 8.74.0, vite 8.3.8 to 8.4.x, vitest 5.1.0 to 5.1.2. TypeScript 7 is excluded (issue #26).
Acceptance criteria
- npm audit reports no advisories with an available fix
- Lint, tests and the build pass on the refreshed lockfile
Getting started
- Relevant files:
package-lock.json,package.json - How to run the checks:
npm run lint,npm test,npm run build - Related docs:
CONTRIBUTING.md
Filed by repo-audit/full-audit at 0391275. Severity: low. Effort: S. audit-key: dependencies|package-lock.json|cross-spawn,terser
Activity
TMHSDigital commentedon Dec 4, 2026
Fixed in 3cf55a5. npm audit fix updated cross-spawn and terser in package-lock.json only (two packages, package.json unchanged). Verified: npm audit reports 0 vulnerabilities, and lint, the full test suite and the production build pass on the refreshed lockfile.