davsclaus opened a new issue, #1884: URL: https://github.com/apache/camel-website/issues/1884
## Description GitHub reports **61 open Dependabot alerts** on `main`: 7 critical, 24 high, 25 moderate and 5 low. All of them are in `yarn.lock`, and they come from 22 packages, almost all of them transitive. Exposure is mostly build-time. The website is static HTML, and none of these packages runs in a visitor's browser. However, they do run on the Jenkins build nodes, in GitHub Actions and on contributors' machines, and several are archive extractors (`tar`, `decompress`, `extract-zip`) that process downloaded content. That is the kind of use where these advisories matter. ### Alerts by package Counts and highest severity come from the Dependabot API. "Locked" is the version in `yarn.lock`, and "Fixed in" is the first patched version for the newest advisory. | Package | Alerts | Highest | Locked | Fixed in | Pulled in by | |---|---|---|---|---|---| | `tar` | 12 | critical | 6.2.1 | 7.5.21 | `@mapbox/node-pre-gyp`, `node-gyp`, `@netlify/edge-bundler` | | `handlebars` | 3 | critical | 4.7.9, 4.7.10 | 4.7.10 | `@antora/page-composer`, `@springio/antora-extensions`, `antora-ui-camel` | | `decompress` | 4 | critical | 4.2.1 | **no fix** | `@springio/antora-extensions`, `bin-build`, `careful-downloader` | | `seroval` | 4 | critical | 1.5.6 | 1.6.10 | `solid-js` | | `shell-quote` | 1 | critical | 1.10.0 | 1.11.0 | `browserify`, `npm-run-all` | | `toml` | 4 | high | 3.0.0, 4.3.0, 5.0.1 | 5.0.1 | `netlify-cli`, `@netlify/zip-it-and-ship-it`, root and `antora-ui-camel` | | `sharp` | 3 | high | 0.34.5 | 0.35.5 | `ipx` | | `extract-zip` | 2 | high | 2.0.1 | **no fix** | `@netlify/functions-dev` | | `lodash.pick` | 1 | high | 4.4.0 | **no fix** | `[email protected]` | | `jsonpath` / `underscore` | 2 | high | 1.2.1 / 1.13.6 | 1.3.0 / 1.13.8 | `@djencks/asciidoctor-jsonpath` | | `@fastify/static` | 2 | high | | 10.1.2 | (Netlify dev tooling) | | `decode-uri-component` | 2 | high | | 0.5.1 | | | `hono` | 6 | moderate | 4.13.7 | 4.13.16 | `@modelcontextprotocol/sdk` | | `fast-uri` | 5 | moderate | | 4.2.3 | | | `ip-address` | 3 | moderate | | 10.7.4 | | | `file-type`, `got`, `minimatch`, `qs`, `uuid`, `fast-xml-parser` | 1 each | moderate/low | | patched versions available | | | `elliptic` | 1 | low | 6.6.1 | **no fix** | `browserify-sign`, `create-ecdh` (browserify) | Notes: - `toml` was bumped to 5.0.1 in #1856, but older copies (3.0.0, 4.3.0) are still locked through other dependencies. - `handlebars` 4.7.10 is the patched version, but `@springio/antora-extensions` still resolves its own 4.7.9. - A large share of the alerts come from **`netlify-cli`** and its dependency tree (`@netlify/*`, `ipx`/`sharp`, `solid-js`/`seroval`, `@fastify/static`, `extract-zip`), which is only used for PR previews. ## Proposal 1. **Refresh transitive dependencies** where a fix exists: `yarn up -R <pkg>` for `tar`, `handlebars`, `seroval`, `shell-quote`, `sharp`, `hono`, `fast-uri`, `ip-address`, `decode-uri-component`, `underscore` and so on. Use `resolutions` in the root `package.json` only where a parent pins an old range, and document why. 2. **Check whether `netlify-cli` is still needed as a dependency.** If previews only run `netlify deploy --no-build`, run it with `npx`/`yarn dlx` in the preview workflow instead of keeping it in `package.json`. That would remove most of the dev-only alerts. 3. **Replace the unmaintained packages that have no fix:** - `decompress`: who uses it via `@springio/antora-extensions`, `bin-build` and `careful-downloader`, and can it be avoided? - `[email protected]`, for `lodash.pick`: upgrade to a current cheerio. - `browserify`, for `elliptic` and `shell-quote`: is it still needed in the UI build? - `extract-zip`: goes away with item 2. 4. **Close what doesn't apply:** dismiss alerts that don't apply, with a reason (e.g. code path not used), so the remaining count reflects real work. 5. **Keep it from building up again:** consider Dependabot grouping for minor/patch updates in `.github/dependabot.yml`, so transitive fixes arrive in a few grouped PRs instead of piling up. ## Additional Context - Alerts: https://github.com/apache/camel-website/security/dependabot - Related build/maintenance ticket: #1882. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
