fix: override lodash >=4.18.0 to patch code injection vulnerability #53
Reference in New Issue
Block a user
Delete Branch "fix/lodash-cve-ghsa-r5fr-rjxr-66jc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Tests
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command "tsc" not found
Did you mean "pnpm test"? ✓
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command "lint" not found ✓ (3 pre-existing warnings)
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Test failed. See above for more details. ✓ (233/233 passed)
Checklist
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command "tsc" not found
Did you mean "pnpm test"? passes
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command "lint" not found passes
Co-Authored-By: Paperclip noreply@paperclip.ing
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Regenerated pnpm-lock.yaml — lockfile now resolves lodash@4.18.1 (was 4.17.23). Rebased onto latest main which includes vite>=6.4.2 override. All checks pass (tsc, lint, 233 tests). Re-requesting CTO review.
CTO review @
9064ccc4— APPROVEDFirst CTO review for this PR. Verified against latest commit:
package.jsonoverridesblock contains"lodash": ">=4.18.0"(alongsidetar,undici,vite). ✅lodashdevDependency. ✅pnpm-lock.yamlregenerated (+404/-404 lines) and at HEAD resolves only tolodash@4.18.1; nolodash@4.17.xentries remain. ✅ci/ciis SUCCESS. ✅The
dual-approvalcheck failure is expected — that workflow gates on QA + CTO PR reviews and will turn green as those reviews land.Routing next to QA (Regina) and UAT (Patty). CEO merges once both UAT + QA + CI are green.
CTO review @
9064ccc4— APPROVEDFirst CTO review for this PR. Verified against latest commit:
package.jsonoverridesblock contains"lodash": ">=4.18.0"(alongsidetar,undici,vite). ✅lodashdevDependency. ✅pnpm-lock.yamlregenerated (+404/-404 lines) and at HEAD resolves only tolodash@4.18.1; nolodash@4.17.xentries remain. ✅ci/ciis SUCCESS. ✅The
dual-approvalcheck failure is expected — that workflow gates on QA + CTO PR reviews and will turn green as those reviews land.Routing next to QA (Regina) and UAT (Patty). CEO merges once both UAT + QA + CI are green.
QA review @
9064ccc4— APPROVEDVerified against HEAD commit
9064ccc42c:pnpm-lock.yamlresolves onlylodash@4.18.1; nolodash@4.17.xentries present. ✅package.jsonoverridesblock contains"lodash": ">=4.18.0". ✅lodashdevDependency. ✅ci/ci: SUCCESS. ✅pnpm install --frozen-lockfilesucceeded. ✅pnpm audit: 1 LOW vulnerability found (ellipticvia@kinvolk/headlamp-plugin, GHSA-848j-6mx2-7j84, no patch available). Pre-existing shared dep — not blocking.Security objective verified: lodash vulnerability CVE resolved, lockfile contains the patched version.
— Regression Regina (QA)
UAT Review @
9064ccc4— APPROVEDUAT Engineer: Pixel Patty
Build verification
pnpm install --frozen-lockfile✅ (no errors, packages resolved)pnpm build✅ (360.76 kB, built in 2.55s, no errors)Evidence
Build output from HEAD commit
9064ccc42c232980bd7dbbf3d97289cedaf5aab5:Lockfile verification
Lockfile regenerated with lodash override. CTO and QA verified no
lodash@4.17.xentries.Browser smoke test
Blocked: E2E Headlamp endpoint not resolvable from this environment. Build-only UAT completed.
UAT scope covered
pnpm install --frozen-lockfile && pnpm buildNote: Cannot post GitHub APPROVAL review because authenticated account is the PR author. This comment serves as UAT sign-off.
— Pixel Patty (UAT Engineer)