Dependency Management
This document describes how Questarr selects, obtains, and tracks its dependencies.Selection
Dependencies are added deliberately as part of normal development, vianpm install, and land in package.json alongside the feature or fix that needs them. Preference is given to actively maintained, widely used packages already common in the Node/React ecosystem. New dependencies go through the same pull request review process as any other code change (see .github/CONTRIBUTING.md) before merging to main.
Obtaining dependencies
- Packages are installed from the public npm registry.
package-lock.jsonis committed to the repository and used for reproducible installs — the exact resolved version of every direct and transitive dependency is pinned.- The
packageManagerfield inpackage.jsonpins the npm version used to install and build the project. - The
allowScriptsfield inpackage.jsonexplicitly allowlists which packages are permitted to run install-time (postinstall) scripts. It’s npm’s own native field (npm ≥ 11.16.0), managed vianpm approve-scripts/npm deny-scripts, not a third-party tool — today it’s advisory (npm flags unreviewed scripts but still runs them), with a future npm release expected to block unapproved scripts by default. Any package added here should have a concrete reason (e.g. a native module that needs to compile a binary during install). - The
overridesfield forces a specific version of a transitive dependency when a direct dependency’s own declared range still permits a vulnerable release:socket.io-parser: 4.2.7patches CVE-2026-33151 (resource exhaustion via unbounded binary attachments, fixed in 4.2.6) and CVE-2026-69185 (zero-attachment memory exhaustion, fixed in 4.2.7). Needed becausesocket.io/socket.io-clientdeclaresocket.io-parser: ~4.2.4, a range that still allows the unpatched 4.2.4–4.2.6.engine.io: ^6.6.10patches GHSA-2gc4-cqfq-p2gv (DoS via an Engine.IO protocol revision mismatch). Needed becausesocket.io@4.8.4declaresengine.io: ~6.6.0, a range that still allows the unpatched 6.6.0–6.6.9.@esbuild-kit/core-utils’sesbuilddependency is bumped to^0.25.0to patch the esbuild dev-server request-forwarding issue (GHSA-67mh-4wv8-2f99). Needed becausedrizzle-kitpulls in@esbuild-kit/esm-loader→@esbuild-kit/core-utils, which pinsesbuild: ~0.18.20.qs: ^6.16.0patches CVE-2026-82417 (DoS via attacker-controlledisBuffer, affecting>=2.2.5 <6.16.0) and CVE-2026-82562 (array-limit bypass via bracket-key comma parsing, affecting>=6.14.2 <=6.15.3). Needed becauseexpressandbody-parserstill pinqsto a range that excludes the patched6.16.0, andopenid,steam-webandsuperagenthave ranges that likewise still permit a vulnerable release.brace-expansionis no longer overridden: everyminimatchrelease now resolved (10.2.6 and 11.x) declares^5.0.12itself, which covers GHSA-6j4f-fj2g-mc7p, GHSA-qhr7-859c-m2p7, GHSA-q2hr-2g5m-vwhr and the earlier CVE-2026-69152 / CVE-2026-14257 / CVE-2026-13149 DoS issues. Re-add the override if a consumer ever resolves a version below5.0.12.ip-address: ^10.7.5(raised from 10.7.2 by a Dependabot bump) patches CVE-2026-101913 and CVE-2026-101910 (affecting<=10.5.0). Needed becauseexpress-rate-limit(^10.2.0) andsocks(^10.1.1) still allow a vulnerable release.minimatch: ^10.2.6keeps the generalminimatchconsumers (eslint,glob,@npmcli/*, …) on the 10.x line they declare, at the latest 10.x release. The nestedreaddir-glob→minimatch: ^11.0.1override patches GHSA-g3hv-75wg-m249 (denial of service via globparts amplification, affects>=7.0.0 <11.0.1, fixed in 11.0.1; 10.x has no fix).archiver→readdir-glob(backup archives) is the only production consumer, and it is scoped so the semver-major jump does not reach dev tooling such asglob@13. Verified thatreaddir-globworks with minimatch 11 and that the backup tests pass. Both overrides can go oncereaddir-globships a release depending on a patched minimatch.node-gyp’sundicidependency is bumped to^6.29.0to patch CVE-2026-85024 (affecting6.25.0–6.28.0). Scoped tonode-gyp(reached via the dev-only@lizenz/checker) because the app’s own directundicidependency already carries the same fix on the 8.x line (8.10.2). Needed becausenode-gypdeclaresundici: ^6.25.0.eslint-plugin-react’seslintdependency is bumped to^10.9.1to allow ESLint v10 support. Needed becauseeslint-plugin-react@7.37.2officially supports only up toeslint@^9.7, but the linting rules in ESLint v10 are stricter and require updating the codebase to comply. This override is temporary — onceeslint-plugin-reactreleases a new major version with official ESLint v10 support, it can be removed.fast-copy: ^4.1.0patches GHSA-jggr-w7fw-pc2j (stack exhaustion when copying deeply nested values, fixed in 4.1.0). Dev-only. Needed becausepino-prettydeclaresfast-copy: ^4.0.0, which still allows the unpatched 4.0.0–4.0.4.postcss-selector-parser: ^7.1.6patches CVE-2026-104844 (quadratic complexity in flat selector parsing, fixed in 7.1.6). Dev-only. Needed because@npmcli/querydeclarespostcss-selector-parser: ^7.0.0. The 6.x line has no fix; its only consumer, the unused@tailwindcss/typography, was removed rather than forced across a major version.body-parser: ^2.4.0patches GHSA-27r3-jxmh-p828 (DoS via trailing bytes after a compressed request body, affecting2.3.0). Needed becauseexpress@5.3.0declaresbody-parser: ^2.3.0, a range that still allows the vulnerable release. The directmulterdependency is bumped to^2.5.0for GHSA-q7qp-rjg7-q26m (DoS via a pending asynchronousfileFilterafter request teardown, fixed in 2.5.0).ws: ^8.23.0patches GHSA-37g9-w4hg-h9qr (memory exhaustion DoS via unbounded automatic pong responses, fixed in 8.23.0). Needed becauseengine.io-clientandsocket.io-adapterdeclarews: ~8.21.0, a range that still allows the vulnerable 8.21.0–8.22.x.- All of the above should be revisited (and likely removed) once the upstream packages bump their own internal dependency ranges past the vulnerable versions.
- The
check-overridesCI job (npm run check:overrides, seescripts/check-overrides.mjs) checks this automatically on every PR and fails once an override is no longer needed, so there’s no need to track removal manually.
Tracking and updates
Dependabot is configured in.github/dependabot.yml to check for updates weekly (Monday) for both npm dependencies and GitHub Actions used in CI:
- Updates are opened as grouped pull requests (e.g. React-related packages, Radix UI components, dev vs. production dependencies, and all GitHub Actions bumps) to keep the PR volume manageable.
- Semver-major bumps are proposed automatically like any other update rather than excluded, since silently skipping them meant a major-version-only security fix could go unnoticed; they aren’t folded into the minor/patch groups, so they still land as their own PR and get individual review.
- Every dependency-update PR runs through the same CI gate as any other change — lint, type check, the full test suite, and a Docker build (see
.github/workflows/ci.yml) — before it can be merged.
Release-time visibility
Every published Docker image ships with a generated Software Bill of Materials listing the exact versions of every dependency included in that release. See docs/SBOM.md for how to inspect it.Previously blocked updates
Resolved in 1.5.0: React 19, matching React type packages, Zod 4, and@hookform/resolvers 5 are supported.