Repository navigation
chore(deps): vitest 4.1.11, nodemailer 9.1.1, js-yaml 4.3.2 - #2057
Conversation
Clears 7 of the 11 open Dependabot alerts on this repo. The remaining 4 are
covered below with reasons, not left silent.
vitest ^4.1.8 / ^4.1.6 -> ^4.1.11 in backend, packages/ui and
packages/dashboard (each declares its own) 2 alerts, dev
@vitest/mocker lifts to 4.1.11 with vitest
nodemailer ^9.0.3 -> ^9.1.1 4 alerts, runtime
js-yaml override 5.2.3 -> ^4.3.2 1 alert, dev, HIGH
nodemailer is NOT the 6.x -> 9.x major the alert ranges imply -- the repo is
already on 9.0.3, so this is a patch bump. Note 9.1.1 rather than 9.1.0: alert
#192 covers "<= 9.1.0", so 9.1.0 would still be flagged.
js-yaml is the interesting one. The root override pinned 5.2.3, but every
consumer wants ^4.1.x (@eslint/eslintrc, cosmiconfig, csv-to-pg), so a 5.x pin
could not apply to them and the root copy sat on the vulnerable 4.3.1 while the
override looked like it had handled it. ^4.3.2 is the patched release in the
line they actually resolve, so the override now does what it claims.
NOT FIXED, and not fixable:
adm-zip #188 GHSA-vwc7-r8mq-g2x9, ">= 0.5.9, <= 0.6.0", first_patched_version
NONE. 0.6.0 is the latest published version, so there is no
upstream fix to take. Needs a risk acceptance or a replacement
dependency, not a bump.
NOT FIXED, deliberately, both unchanged from #2048:
qs #182/#183 express@4 -> [email protected] pins qs@~6.15.1 and the patch
is 6.16.0, outside it. Needs an express 5 major.
csv-parse #187 dev-only, via pgsql-seed -> [email protected] -> csv-parse ^6.2.1.
pg-seed@latest still requires ^6.2.1, so there is no upstream
fix. The runtime path is already on 7.0.2.
Lock regenerated with npm 11 (`npx npm@11 install --package-lock-only`): npm
10.9.4 fails on this repo with `Cannot read properties of null (reading
'edgesOut')`, which reproduces on clean main with the lock deleted and is not
caused by this change. lockfileVersion stays 3 and `npm ci` under npm 10
installs it cleanly.
Verified: `npm ci` clean; `npm run typecheck` 8/8 turbo tasks; backend suite
203 files / 2,425 tests passed, 21 skipped. First run showed 1 failure that
did not reproduce on re-run -- flake, not this change.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015uMMufpCJ4VqNeavrDHJim
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. WalkthroughThe pull request updates dependency version ranges in the root, backend, dashboard, and UI package manifests. It changes the ChangesDependency maintenance
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to This dependency-only change updates Vitest, Nodemailer, and js-yaml resolution. Clean installation, typechecking, and the passing backend test suite provide sufficient evidence that it is ready to merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit reads each line, Comment |
|
| "form-data": "4.0.6", | ||
| "@opentelemetry/core": "2.9.0", | ||
| "js-yaml": "5.2.3", | ||
| "js-yaml": "^4.3.2", |
There was a problem hiding this comment.
The override now requires js-yaml 4.x, but the lockfile still pins node_modules/@eslint/eslintrc/node_modules/js-yaml to 5.2.3. That version satisfies neither this override nor @eslint/eslintrc's ^4.1.1 requirement. Lock-based and fresh installs can therefore produce different dependency trees. Please regenerate the complete js-yaml subtree so every affected edge reflects the new override.
jwfing
left a comment
There was a problem hiding this comment.
Summary
The version bumps are otherwise coherent, but the committed lockfile does not fully honor the new js-yaml override.
Requirements context
Intent was derived from the PR description: upgrade Vitest to 4.1.11, Nodemailer to 9.1.1, and make all applicable js-yaml consumers resolve to the patched 4.3.2 line. No linked implementation issue or additional dependency-upgrade specification was provided or found; the repository declares npm 11.3.0 as its package manager (package.json:93). The selected releases correspond to the upstream Nodemailer 9.1.1 security fixes, Vitest 4.1.11 release, and js-yaml 4.3.2 advisory fix.
Findings
Critical
- The lockfile still violates the new
js-yamloverride. The manifest globally overridesjs-yamlto^4.3.2, and@eslint/eslintrcrequests^4.1.1, but its nested lock entry remains at5.2.3(package.json:86,package-lock.json:2523,package-lock.json:2547-2569). A read-onlynpm ls vitest nodemailer js-yaml @vitest/mocker --all --package-lock-onlyreports that copy as invalid and exits withELSPROBLEMS. Consequently, the committed install graph does not implement the PR’s stated goal of moving these consumers onto the compatible 4.3.2 line. Regenerate the lock from a clean state with npm 11 and verify the nested 5.2.3 entry is removed andnpm ls js-yaml --all --package-lock-onlyexits successfully.
Suggestion
(none)
Information
- Software engineering: The Vitest declarations are aligned across backend, dashboard, and UI, and the lock resolves Vitest and its internal packages consistently to 4.1.11 (
backend/package.json:100,packages/dashboard/package.json:99,packages/ui/package.json:86,package-lock.json:17318-17331). Existing SMTP unit tests cover transport creation and message sending (backend/tests/unit/smtp-provider.test.ts:66-174); no source behavior changed that calls for a new test case. Full tests were not independently rerun because this review was required to remain read-only. - Functionality: Nodemailer resolves to the requested 9.1.1 runtime version (
backend/package.json:69,package-lock.json:13781-13788). Apart from the invalid nestedjs-yamlresolution above, the requested package versions are reflected in the lockfile. - Security: The updated root
js-yamland Nodemailer entries use patched versions and registry integrity hashes (package-lock.json:12782-12803,package-lock.json:13781-13788). No application input handling, SQL, shell execution, authentication, authorization, logging, or secret-management code changes are present. - Performance: No application hot paths, queries, loops, or allocations changed. The dependency changes introduce no evident performance regression;
js-yaml4.3.2 specifically addresses adversarial CPU consumption.
Verdict
Request changes. The stale nested [email protected] makes the committed dependency graph inconsistent with the new override and must be corrected before merge.
Greptile's P2 is correct, and I had noticed this and waved it off, which was wrong. After the override moved from 5.2.3 to ^4.3.2, the lockfile still pinned `node_modules/@eslint/eslintrc/node_modules/js-yaml` at 5.2.3 -- a version that satisfies NEITHER the new override NOR @eslint/eslintrc's own ^4.1.1. A lock-based install and a fresh resolve would therefore have produced different trees. Not a security issue: 5.2.3 sits above the vulnerable `>=4.0.0 <4.3.2` range. It is a lockfile correctness issue, which is worth fixing on its own terms. Dropped the stale node and re-resolved. There is now exactly ONE js-yaml, at 4.3.2, satisfying both the override and eslintrc. Verified: `npm ci` clean; `npm ls js-yaml --all` reports 4.3.2 as `overridden` and `deduped` with NO `invalid` nodes; `npm run typecheck` 8/8 turbo tasks. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015uMMufpCJ4VqNeavrDHJim
There was a problem hiding this comment.
1 issue found and verified against the latest diff
Confidence score: 5/5
package.jsonleavespackage-lock.jsonwith a stale nestedjs-yamlresolution at5.2.3, which can make installs inconsistent with the new^4.3.2override; regenerate and verify the lockfile before merging.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="package.json">
<violation number="1" location="package.json:86">
P3: After changing the js-yaml override from the exact pin `5.2.3` to `^4.3.2`, `package-lock.json` still contains a stale nested `node_modules/@eslint/eslintrc/node_modules/js-yaml` entry resolved to `js-yaml-5.2.3.tgz`. `@eslint/[email protected]` declares `js-yaml: ^4.1.1`, and `^4.3.2` satisfies that range, so a clean regeneration would dedupe eslintrc onto the root `[email protected]` (node_modules/js-yaml) and drop the nested copy entirely. The lockfile was regenerated with `npx npm@11 install --package-lock-only`, yet the old 5.2.3 install path survived, so the resolved tree still installs a [email protected] copy that the override and this PR's stated goal of applying the patched release were meant to eliminate. Regenerate the lockfile cleanly (e.g. delete the stale `node_modules/@eslint/eslintrc/node_modules/js-yaml` entry and re-run install) so the override is consistently reflected.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| "form-data": "4.0.6", | ||
| "@opentelemetry/core": "2.9.0", | ||
| "js-yaml": "5.2.3", | ||
| "js-yaml": "^4.3.2", |
There was a problem hiding this comment.
P3: After changing the js-yaml override from the exact pin 5.2.3 to ^4.3.2, package-lock.json still contains a stale nested node_modules/@eslint/eslintrc/node_modules/js-yaml entry resolved to js-yaml-5.2.3.tgz. @eslint/[email protected] declares js-yaml: ^4.1.1, and ^4.3.2 satisfies that range, so a clean regeneration would dedupe eslintrc onto the root [email protected] (node_modules/js-yaml) and drop the nested copy entirely. The lockfile was regenerated with npx npm@11 install --package-lock-only, yet the old 5.2.3 install path survived, so the resolved tree still installs a [email protected] copy that the override and this PR's stated goal of applying the patched release were meant to eliminate. Regenerate the lockfile cleanly (e.g. delete the stale node_modules/@eslint/eslintrc/node_modules/js-yaml entry and re-run install) so the override is consistently reflected.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At package.json, line 86:
<comment>After changing the js-yaml override from the exact pin `5.2.3` to `^4.3.2`, `package-lock.json` still contains a stale nested `node_modules/@eslint/eslintrc/node_modules/js-yaml` entry resolved to `js-yaml-5.2.3.tgz`. `@eslint/[email protected]` declares `js-yaml: ^4.1.1`, and `^4.3.2` satisfies that range, so a clean regeneration would dedupe eslintrc onto the root `[email protected]` (node_modules/js-yaml) and drop the nested copy entirely. The lockfile was regenerated with `npx npm@11 install --package-lock-only`, yet the old 5.2.3 install path survived, so the resolved tree still installs a [email protected] copy that the override and this PR's stated goal of applying the patched release were meant to eliminate. Regenerate the lockfile cleanly (e.g. delete the stale `node_modules/@eslint/eslintrc/node_modules/js-yaml` entry and re-run install) so the override is consistently reflected.</comment>
<file context>
@@ -83,7 +83,7 @@
"form-data": "4.0.6",
"@opentelemetry/core": "2.9.0",
- "js-yaml": "5.2.3",
+ "js-yaml": "^4.3.2",
"@babel/core": "7.29.7",
"tsup": {
</file context>
|
The stale nested Verified against the pushed lockfile at Exactly one The check requested in the review passes: Also re-verified on this head: The latest cubic comment reports the 5.2.3 entry as still present on I had noticed this nested entry while preparing the original commit and moved past it because 5.2.3 sits above the vulnerable 🤖 Generated with Claude Code |
jwfing
left a comment
There was a problem hiding this comment.
Summary
The dependency updates and regenerated lockfile implement the stated security-maintenance goal without introducing a blocking correctness, security, or performance issue.
Requirements context
I assessed the change against the PR description’s stated goal of clearing the Vitest, Nodemailer, and js-yaml Dependabot alerts while deliberately leaving the documented adm-zip, qs, and csv-parse cases unresolved. No linked issue, design document, or additional dependency-specific requirements were provided or found; repository guidance requires Node.js LTS, npm-based lockfile installation, and backend/dashboard/UI test coverage.
Findings
Critical
(none)
Suggestion
- The PR description calls Nodemailer 9.0.3 → 9.1.1 a “patch bump,” but this is a semver minor update. Consider correcting that wording so reviewers accurately understand the runtime dependency’s change scope; the selected and locked version itself is correct. (
backend/package.json:69,package-lock.json:13758-13765)
Information
- Software engineering/functionality: all three workspace manifests consistently request Vitest 4.1.11, and the lockfile resolves Vitest and its internal packages to the same version. The js-yaml override now matches its 4.x consumers and produces one 4.3.2 lock entry; Nodemailer resolves to 9.1.1 as intended. (
backend/package.json:69-100,package.json:83-90,packages/dashboard/package.json:93-100,packages/ui/package.json:82-87,package-lock.json:12759-12780,package-lock.json:17295-17327) - Test coverage: this changes dependencies rather than application behavior. Existing SMTP unit tests cover the application-facing transport calls, although Nodemailer itself is mocked. An independent targeted rerun could not install the workspace dependencies because npm 10 encountered the documented
edgesOutfailure; read-only lock-tree validation andgit diff --checkpassed. (backend/tests/unit/smtp-provider.test.ts:6-17,backend/package.json:8-20) - Security: a lock-only audit no longer reports Vitest, Nodemailer, or js-yaml, and registry integrity values match the lockfile. The dependency-only change does not alter input handling, authentication, authorization, SQL, logging, or secret exposure; the remaining disclosed advisory families are outside this diff. (
package-lock.json:12759-12780,package-lock.json:13758-13765,package-lock.json:17295-17327) - Performance: no request path, query, loop, allocation, or I/O behavior was changed. The only runtime modification is the Nodemailer version update, with the remaining updates limited to development tooling. (
backend/package.json:69-100,packages/dashboard/package.json:93-100,packages/ui/package.json:82-87)
Verdict
Approved: no Critical findings. The wording correction is non-blocking.
What
Clears 7 of the 11 open Dependabot alerts on this repo. The other 4 are accounted for below rather than left silent.
vitest^4.1.8/^4.1.6→^4.1.11inbackend,packages/ui,packages/dashboard@vitest/mockernodemailer^9.0.3→^9.1.1js-yaml5.2.3→^4.3.2nodemaileris not the 6.x → 9.x major the alert ranges imply — the repo is already on 9.0.3, so this is a patch bump. Note 9.1.1, not 9.1.0: alert #192 covers<= 9.1.0, so 9.1.0 would still be flagged.js-yamlis the interesting one. The root override pinned5.2.3, but every consumer wants^4.1.x(@eslint/eslintrc,cosmiconfig,csv-to-pg). A 5.x pin can't apply to them, so the root copy sat on the vulnerable 4.3.1 while the override looked like it had handled it.^4.3.2is the patched release in the line they actually resolve, so the override now does what it claims.❌ Not fixable
adm-zip#188 —GHSA-vwc7-r8mq-g2x9, range>= 0.5.9, <= 0.6.0,first_patched_version: NONE. 0.6.0 is the latest published version, so there is no upstream fix to take. This needs a risk acceptance or a replacement dependency, not a bump.Not fixed deliberately (both unchanged from #2048)
qsfix package lock #182/[Feature]: Foreign key UI Fix #183 —express@4 → [email protected]pinsqs@~6.15.1; the patch is 6.16.0, outside it. Needs an express 5 major.csv-parsechore: use logger instead of console output #187 — dev-only, viapgsql-seed → [email protected] → csv-parse ^6.2.1.pg-seed@lateststill requires^6.2.1, so no upstream fix exists. The runtime path is already on 7.0.2.Tooling note
Lock regenerated with npm 11 (
npx npm@11 install --package-lock-only). npm 10.9.4 fails on this repo withCannot read properties of null (reading 'edgesOut'), which reproduces on cleanmainwith the lock deleted and is not caused by this change.lockfileVersionstays 3 andnpm ciunder npm 10 installs cleanly.Verification
npm cicleannpm run typecheck— 8/8 turbo tasksFirst run showed 1 failure that did not reproduce on re-run — flake, not this change. Recording it rather than quietly re-running until green.
🤖 Generated with Claude Code
https://claude.ai/code/session_015uMMufpCJ4VqNeavrDHJim
Summary by cubic
Clears 7 of 11 open Dependabot alerts by bumping
vitestto 4.1.11,nodemailerto 9.1.1, and fixing thejs-yamloverride.nodemaileris a patch bump (9.0.3 → 9.1.1), not the major the alert ranges imply.js-yaml
@eslint/eslintrc; regenerated the subtree so only onejs-yamlat 4.3.2 remains, satisfying both the override and consumers.Not fixed
adm-ziphas no upstream patched release; needs a risk acceptance or replacement.qsneeds an express 5 major sincebody-parserpinsqs@~6.15.1.csv-parseis dev-only andpg-seedstill requires ^6.2.1.The lockfile was regenerated with npm 11; npm 10 fails on clean
maintoo, so this change isn't the cause.Written for commit 4c83ddd. Summary will update on new commits.
Summary by CodeRabbit