Skip to content

fix(deps): extract-zip advisory via test runner #527

Closed

Description

@uniqueg

Problem

GHSA-7pqw-9j4j-h8q3 (high): extract-zip <= 2.0.1 allows arbitrary file writes through symlink archive entries. There is no patched release of extract-zip. Dependabot alert #354 (development scope); the older alert #340 (GHSA-jmr9-qjv8-65gv) is on the same package.

Locked on dev and main: extract-zip 2.0.1, via

  • @web/test-runner 0.19 -> @web/test-runner-chrome 0.17 -> puppeteer-core 23.11.1 -> @puppeteer/browsers 2.6.1 (pinned exactly)
  • packages/ecc-client-elixir-ro-crate: @web/test-runner 0.18 -> @web/test-runner-chrome 0.16 -> puppeteer-core 22.15.0 -> @puppeteer/browsers 2.3.0

Reachability

Dev-only. extract-zip is used only when @puppeteer/browsers downloads and unpacks a browser archive; our tests launch browsers through Playwright (web-test.runner-config.mjs), and nothing in the repository installs browsers through Puppeteer. So the vulnerable code path is not exercised, but the package is installed on every npm ci.

Fix

@puppeteer/browsers 3.x no longer depends on extract-zip. An overrides entry to 3.x is not an option: it crosses a major of an exact pin, 3.x is ESM-only and needs Node >= 22.12, and npm did not apply it to the existing lockfile. The clean fix is the upstream chain: @web/test-runner 1.x -> @web/test-runner-chrome 1.x -> puppeteer-core 25.x -> @puppeteer/browsers 3.x. That means moving the Modern Web test stack (@web/test-runner, @web/test-runner-playwright, @web/dev-server, @web/dev-server-esbuild) to its 1.x/2.x majors in the root and the packages. These need Node >= 22, which matches CI (22, 24).

Activity

  1. added
    priority: high
    status: in progress
    type: security
    workload: hours
    type: dependencies
    on Nov 1, 2026
  2. removed
    status: in progress
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: dependenciestype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions