Skip to content

@wordpress/scripts 33.0.0 still publishes vulnerable build-tool dependencies #80682

Open

Description

@chubes4

Description

A clean install of the latest @wordpress/scripts@33.0.0 (Node 25.7.0, npm 11.10.1, no lockfile) reports 29 npm audit findings: 22 moderate and 7 high. All paths originate under @wordpress/scripts.

The published package metadata also appears inconsistent with the 33.0.0 changelog: the changelog says webpack-dev-server was updated to ^5.2.1, but npm view @wordpress/scripts@33.0.0 dependencies.webpack-dev-server returns ^4.15.1, and a clean install resolves 4.15.2.

Reproduction

npm init -y
npm install --save-dev @wordpress/scripts@33.0.0
npm audit --json

Representative vulnerable paths from the clean tree:

  • @wordpress/scripts@33.0.0 > adm-zip@0.5.18 (GHSA-xcpc-8h2w-3j85; patched 0.6.0 exists)
  • @wordpress/scripts@33.0.0 > copy-webpack-plugin@10.2.4 > serialize-javascript@6.0.2 (GHSA-5c6j-r48x-rmvq and GHSA-qj8w-gfj5-8c6v)
  • @wordpress/scripts@33.0.0 > markdownlint-cli@0.31.1 > markdownlint@0.25.1 > markdown-it@12.3.2 > linkify-it@3.0.3 (multiple quadratic-complexity advisories)
  • @wordpress/scripts@33.0.0 > markdownlint-cli@0.31.1 > minimatch@3.0.8 (multiple ReDoS advisories)
  • @wordpress/scripts@33.0.0 > webpack-dev-server@4.15.2 > sockjs@0.3.24 > uuid@8.3.2 (webpack dev-server exposure/DoS advisories and GHSA-w5hq-g745-h8pq)
  • @wordpress/scripts@33.0.0 > @wordpress/e2e-test-utils-playwright@1.51.0 > lighthouse@12.8.2 > @sentry/node@9.47.1 > @opentelemetry/core@1.30.1 (GHSA-8988-4f7v-96qf and propagated moderate findings)

Expected

The published latest package should carry the dependency upgrades described in its changelog and resolve patched transitive versions where compatible, without consumers needing broad overrides that can violate parent package constraints.

Additional context

This was found while upgrading a WordPress plugin from scripts 31.8.0 to 33.0.0. The upgrade removes the critical finding and reduces high findings, but the latest upstream package remains the blocker for removing the residual dev-only advisories safely.

Activity

  1. Adi-ty commented on Jul 25, 2026

    @Adi-ty
    Contributor

    I see that the webpack-dev-server -> ^5.2.1 line listed under ## 33.0.0 in packages/scripts/CHANGELOG.md (#80347) was not part of the 33.0.0 release that's on npm today, which is likely contributing to the confusion in this issue. The changelog entry is currently filed under a version that had already shipped without it. Suggest moving it down to ## Unreleased.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions