Skip to content

fix(webapps): upgrade pa11y to 10 to drop vulnerable extract-zip - #4064

Merged
kthoms merged 1 commit into
mainfrom
fix/webapps-neo-pa11y-extract-zip
Nov 7, 2026
Merged

kthoms merged 1 commit into
mainfrom
fix/webapps-neo-pa11y-extract-zip

Conversation

@kthoms

@kthoms kthoms commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Upgrades the webapps-neo dev dependency pa11y from ^9.1.1 to ^10.0.0 to remove extract-zip from the dependency tree.

Resolves Dependabot alert https://github.com/operaton/operaton/security/dependabot/1355 (GHSA-jmr9-qjv8-65gv / CVE-2026-56876, high): extract-zip <= 2.0.1 does not validate symlink targets, so a crafted zip can create symlinks outside the extraction directory. No patched version exists, so updating extract-zip isn't possible.

Analysis

Dependency path (dev only, not part of the shipped bundle):

pa11y 9.1.1 → puppeteer 24.43.1 → @puppeteer/browsers 2.13.2 → extract-zip 2.0.1
  • extract-zip runs only in @puppeteer/browsers unpackArchive, when Puppeteer installs Chrome for Testing from Google's CDN.
  • Maven (webapps-neo/pom.xml) and the PR CI job run npm ci --ignore-scripts, so the vulnerable code never ran there. It ran only on local installs with scripts enabled and in webapps-neo/frontend/Dockerfile. Real exposure was low.
  • Excluding the package isn't viable: npm overrides cannot remove a transitive dependency, and stubbing it breaks Puppeteer's browser install on Linux, Windows and mac-arm (all .zip).
  • @puppeteer/browsers 3.x replaced extract-zip with modern-tar. pa11y 10 depends on puppeteer ^25.9.0, which pulls in @puppeteer/browsers 3.2.6.

pa11y 10 requires Node ^22.13.0 || >=24. Maven (version.nodejs 24.x) and CI (Node 24) meet that.

Verification

  • package-lock.json no longer contains extract-zip, and npm audit reports 0 vulnerabilities.
  • The lockfile shrinks by about 600 lines (it also drops yauzl, the proxy-agent/pac-resolver chain and tar-fs).
  • pa11y and puppeteer import fine. pa11y 10 still provides the htmlcs runner and the browser/page/ignore options used by e2e/a11y-pa11y.mjs.
  • Not run: npm run test:a11y:pa11y end to end, because it needs the Vite dev server and the backend.

Eligible for patch release backport (dev dependency only, no runtime change).

🤖 Generated with Claude Code

pa11y 9 pulled in extract-zip 2.0.1 through puppeteer 24 and
@puppeteer/browsers 2.x. extract-zip does not validate symlink targets
(GHSA-jmr9-qjv8-65gv / CVE-2026-56876) and has no patched release.

pa11y 10 depends on puppeteer 25, whose @puppeteer/browsers 3.x
replaced extract-zip with modern-tar, so the package leaves the tree.
pa11y 10 requires Node ^22.13 || >=24; Maven and CI use Node 24.

Dev-only dependency; the Maven and CI installs use --ignore-scripts and
never executed the vulnerable code path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 7, 2026 06:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added the scope:webapp-neo Changes affecting the new webapps. label Nov 7, 2026
@kthoms kthoms added the backport:patch-release Should be ported back to the latest feature release branch. label Nov 7, 2026
@kthoms kthoms added this to the 2.3.0 milestone Nov 7, 2026
@kthoms kthoms added the dependencies:npm Changed to NPM dependencies label Nov 7, 2026
@sonarqubecloud

sonarqubecloud Bot commented Nov 7, 2026

Copy link
Copy Markdown

@kthoms
kthoms merged commit af9a47d into main Nov 7, 2026
15 checks passed
@kthoms
kthoms deleted the fix/webapps-neo-pa11y-extract-zip branch November 7, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:patch-release Should be ported back to the latest feature release branch. dependencies:npm Changed to NPM dependencies scope:webapp-neo Changes affecting the new webapps.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants