Repository navigation
fix(webapps): upgrade pa11y to 10 to drop vulnerable extract-zip - #4064
Merged
Merged
Conversation
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]>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Upgrades the webapps-neo dev dependency
pa11yfrom^9.1.1to^10.0.0to removeextract-zipfrom 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):
@puppeteer/browsersunpackArchive, when Puppeteer installs Chrome for Testing from Google's CDN.webapps-neo/pom.xml) and the PR CI job runnpm ci --ignore-scripts, so the vulnerable code never ran there. It ran only on local installs with scripts enabled and inwebapps-neo/frontend/Dockerfile. Real exposure was low.@puppeteer/browsers3.x replaced extract-zip withmodern-tar. pa11y 10 depends on puppeteer ^25.9.0, which pulls in@puppeteer/browsers3.2.6.pa11y 10 requires Node
^22.13.0 || >=24. Maven (version.nodejs24.x) and CI (Node 24) meet that.Verification
package-lock.jsonno longer containsextract-zip, andnpm auditreports 0 vulnerabilities.pa11yandpuppeteerimport fine. pa11y 10 still provides thehtmlcsrunner and thebrowser/page/ignoreoptions used bye2e/a11y-pa11y.mjs.npm run test:a11y:pa11yend 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