chore: upgrade JavaScript dependencies to address 22 CVEs and 6 GHSAs#1502
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
WalkthroughDependency resolutions and workspace package versions were updated for security fixes, with a changelog entry added. Image attachment validation now uses an explicit ChangesDependency security updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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. Comment |
License Audit
Weak Copyleft Packages (informational)
Resolved Packages (8)
|
Fixes SOU-1556
Fixes SOU-1564
Fixes SOU-1565
Fixes SOU-1566
Fixes SOU-1568
Fixes SOU-1570
Fixes SOU-1571
Fixes SOU-1572
Fixes SOU-1573
Fixes SOU-1574
Fixes SOU-1575
Fixes SOU-1576
Fixes SOU-1577
Fixes SOU-1578
Fixes SOU-1579
Fixes SOU-1580
Fixes SOU-1581
Fixes SOU-1582
Fixes SOU-1583
Fixes SOU-1584
Fixes SOU-1590
Fixes SOU-1591
Fixes SOU-1592
Fixes SOU-1593
Fixes SOU-1594
Summary
next-auth@5.0.0-beta.32and@auth/core@0.41.3, Next.js to16.2.11, PostCSS to8.5.22, and Sharp to0.35.3.linkify-it,fast-uri,protobufjs, Express/body-parser, Hono,@hono/node-server, and DOMPurify to patched releases.yarn npm audit --all --recursive --no-deprecations.Advisories
This resolves:
SOU-1561 is excluded because it belongs to
sourcebot-dev/lighthouse. SOU-1567 is excluded because the vulnerable gRPC-Go dependency belongs to thesourcebot-dev/zoektsubmodule repository. Neither advisory is claimed by this PR or its changelog entry.Verification
yarn npm audit --all --recursive --no-deprecations --json— no findingsmakeyarn buildyarn lint— zero errorsyarn test— 120 test files and 1,789 tests passedgit diff --checkSupersedes
This consolidated PR supersedes the overlapping per-package CVE PRs #1467, #1477, #1478, #1479, #1480, #1486, #1487, #1488, #1489, #1490, #1491, #1492, #1493, #1494, #1495, #1496, #1497, #1498, #1499, and #1500.
Note
Medium Risk
Touches authentication (next-auth), the Next.js app shell, Express, and Sharp-based upload validation; risk is mostly regression from version bumps rather than new logic, but those surfaces are security-sensitive.
Overview
This PR bumps vulnerable JavaScript dependencies across the monorepo so
yarn npm auditreports no findings, and documents the fix in CHANGELOG.Web upgrades include
next16.2.11,next-auth5.0.0-beta.32(with@auth/core/@auth/prisma-adapter),sharp0.35.3, andpostcss8.5.12. Backend movesexpressto4.22.2. The rootpackage.jsonadds Yarn resolutions (e.g.@hono/node-server, pinnednext,postcss,sharp) so transitive trees pick patched versions.Transitive refreshes in the lockfile cover
hono,dompurify,fast-uri,linkify-it,protobufjs,body-parser, and related Express stack packages. The only application code change is in chat attachment validation: importMetadatafromsharpinstead ofsharp.Metadatafor Sharp 0.35 typing.Reviewed by Cursor Bugbot for commit f4999ef. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
Bug Fixes
Maintenance