Repository navigation
Patch web Critical and High npm dependency advisories - #72
Conversation
Clear remaining Critical/High findings in web/ with lockfile bumps from npm audit fix, plus underscore and serialize-javascript overrides where consumers pin vulnerable versions. Co-authored-by: August Flanagan <aflanagan@users.noreply.github.com>
_.flatten is deep by default; assert both deep and shallow results. Co-authored-by: August Flanagan <aflanagan@users.noreply.github.com>
|
Opus 5.5 High review @ 9eebafe: APPROVE BlockingNone. What I re-ran (Node 22.23.4, npm 10.9.9, against a master worktree as baseline)
Overrides
Non-blocking
No pushes or merges were made as part of this review. |
Round-trip serialize-javascript through eval the way CRA workers do, and exercise _.uniq, the only underscore API jsonpath uses. Co-authored-by: August Flanagan <aflanagan@users.noreply.github.com>
|
Addressed the Opus non-blocking notes on
No merge. |
|
Opus 5.5 High re-review @ 5e535d2: APPROVE BlockingNone. Delta 9eebafe..5e535d2The only code commit is 5e535d2, which changes
PR bodyAll the earlier corrections landed:
Re-run at 5e535d2 (Node 22.23.4)
Non-blocking nitjsonpath calls the iteratee form, No pushes or merges were made as part of this review. |
|
Opus re-review optional nit (test uses |
Dependabot alerts for
web/package-lock.jsonwere not readable (GitHub API 403). This usesnpm auditplus GitHub advisory ranges instead.npm auditon master was 63 findings (3 Critical, 34 High, 15 Moderate, 11 Low). After this change it is 16 findings (0 Critical, 0 High, 7 Moderate, 9 Low). Draft #64 will moveweb/out of this repo; this stays a lockfile-first patch with two targeted overrides and no CRA/React major upgrades or public-behavior changes.Approach
npm audit fix(no--force) to bump transitive versions inside existing ranges.overridesonly where consumers pin a vulnerable version:underscore:1.13.8(jsonpathpins1.13.6)serialize-javascript:^7.1.3(rollup-plugin-terser / css-minimizer-webpack-plugin stay on 4.x / 6.x; API is unchanged, requires Node >=20, already required here)Direct app dependencies stay on the same majors (
react-scripts@5.0.1,react-router-dom@^6,puppeteer@^25).Fixed Critical (3)
proxy-addrshell-quotequote()does not escape newlines in object.opvalueswebsocket-driverFixed High (48 advisories across 26 packages)
Lockfile bumps unless noted.
shell-quoteGHSA-395f-4hp3-45gv@babel/plugin-transform-modules-systemjsGHSA-fv7c-fp4j-7gwp (7.28.5 → 7.29.8)@remix-run/routerGHSA-2w69-qvjg-hvjx (1.23.1 → 1.23.4);react-router/react-router-dom6.30.2 → 6.30.6body-parserGHSA-27r3-jxmh-p828 (1.20.4 → 1.20.9)brace-expansionGHSA-3jxr-9vmj-r5cp, GHSA-6j4f-fj2g-mc7p, GHSA-mh99-v99m-4gvg, GHSA-qhr7-859c-m2p7, GHSA-rgw5-rvv9-x895browserslistGHSA-73wf-gq98-2v4g, GHSA-c83g-rgw3-j3cxcompressionGHSA-vc2v-76pw-4v95fast-uriGHSA-4c8g-83qw-93j6, GHSA-7p8r-x3mc-p8w7, GHSA-f65p-4m7j-42xc, GHSA-jqff-g426-hqxp, GHSA-q3j6-qgpj-74h6, GHSA-qw65-cvwx-89v3, GHSA-v2hh-gcrm-f6hx, GHSA-v39h-62p7-jpjcflattedGHSA-25h7-pfq9-p65f, GHSA-rf6f-7fwh-wjghform-dataGHSA-hmw2-7cc7-3qxxjs-cookieGHSA-qjx8-664m-686jjsonpathGHSA-87r5-mp6g-5w5j (1.1.1 → 1.3.0)launch-editorGHSA-587h-7wmj-h5pmlodashGHSA-r5fr-rjxr-66jcminimatchGHSA-23c5-xmqv-rm74, GHSA-3ppc-4f35-3m26, GHSA-7r86-cg39-jmmjnanoidGHSA-28wg-ghj8-5hjv, GHSA-2v37-7h3g-55p8, GHSA-xwg4-73v4-xw9wnode-forgeGHSA-2328-f5f3-gj25, GHSA-5m6q-g25r-mvwx, GHSA-86w9-cpqp-85rv, GHSA-ppp5-5v6c-4jwp, GHSA-q67f-28xg-22rw (dropped from the tree)path-to-regexpGHSA-37ch-88jc-xwx2picomatchGHSA-c2c7-rcm5-vvqjpostcssGHSA-6g55-p6wh-862q, GHSA-r28c-9q8g-f849rollupGHSA-mw96-cpmx-2vgc (2.79.2 → 2.80.0)serialize-javascriptGHSA-5c6j-r48x-rmvq — override 4.0.0/6.0.2 → 7.1.4source-map-jsGHSA-68fv-2mgg-jv7qunderscoreGHSA-qpx9-hpmf-5gmw — override → 1.13.8 (also clearsbfj/jsonpathvia-chains)wsGHSA-96hv-2xvq-fx4pzodGHSA-mrhx-c7xc-m3w5 (Puppeteer/chromium-bidi transitive)Other in-range lockfile bumps
These stayed inside declared ranges and are not public API changes:
puppeteer/puppeteer-core25.10.0 → 25.16.0, which pullschromium-bidi17.0.2 → 157.0.8090-0 andzod3.25.76 → 4.6.7 (major of a Puppeteer-only transitive; only chromium-bidi uses zod)webpack5.103 → 5.112,terser-webpack-plugin5.3.15 → 5.6.1,@babel/core7.28.5 → 7.29.7caniuse-lite/ browserslist data (1.0.30001759 → 1.0.30001819) drops very old browsers from>0.2%, not dead(iOS Safari 11.0–11.2 and 15.6, Chrome 112). Babel no longer emits object-spread helpers (JS ~0.86 kB smaller gzipped) and Autoprefixer drops-webkit-appearanceand-webkit-text-decoration-line. No behavior change for current browsers.Left (no remaining Critical/High)
No Critical or High findings remain in
npm audit. Leftover Moderate/Low need a major framework upgrade or annpm audit fix --forcedowngrade ofreact-scriptsto 0.9.5:react-router/react-router-domuuid(viasockjs/webpack-dev-server)sockjspins^8.3.2. Force-fix wantsreact-scripts@0.9.5.webpack-dev-serverhas no remaining advisory of its own; it is flagged only through sockjs → uuidsockjs/@pmmmwh/react-refresh-webpack-pluginjest27 /jsdom16 chainreact-scripts@5.0.1@tootallnate/once/http-proxy-agentValidation
Local (Node 22.23.4):
PUPPETEER_SKIP_DOWNLOAD=true npm ci— 1346 packages, 0 Critical / 0 Highnpm run test:dependencies— 5 passed, 1 skipped (Puppeteer screenshot, noPUPPETEER_EXECUTABLE_PATH)npm run build— production dashboard compiled successfullyGitHub Actions on
5e535d2(Linux + Windows) passed:npm ci, dependency tests, web build,go test ./..., and BATS. Run: https://github.com/cronitorio/cronitor-cli/actions/runs/40577463706