fix: patch SCA vulnerabilities (APPSEC-2107 / 2167 / 2199 / 2213 / 2252) - #68
fix: patch SCA vulnerabilities (APPSEC-2107 / 2167 / 2199 / 2213 / 2252)#68ping-huang1 wants to merge 2 commits into
Conversation
Raise/add pnpm.overrides floors to pull patched versions of four Socket.dev-flagged dependencies, and pin the two workspace vitest specs to match. - APPSEC-2107: vitest 3.2.4 -> 3.2.6 (CVE-2026-47429, GHSA-5xrq-8626-4rwp, critical arbitrary file read/exec via Vitest UI server) - APPSEC-2167: picomatch 4.0.3 -> 4.0.5 (CVE-2026-33671, GHSA-c2c7-rcm5-vvqj, ReDoS via extglob quantifiers) - APPSEC-2199: brace-expansion -> 1.1.16 / 2.1.2 / 5.0.7 (CVE-2026-13149, GHSA-3jxr-9vmj-r5cp, exponential-time expansion DoS) - APPSEC-2213: postcss 8.5.15 -> 8.5.23 (GHSA-r28c-9q8g-f849, source-map path traversal / arbitrary .map disclosure) vitest is pinned to exactly 3.2.6 to stay on the 3.x line (a floor would have pulled the 4.x major). Lockfile regenerated with pnpm 10.20.0; the large diff is mostly cpu/os format normalization. All workspace tests pass (scripts 41, code-components 28). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Addresses CVE-2026-14257 (GHSA-mh99-v99m-4gvg): DoS via unbounded expansion length causing OOM. Affected <= 5.0.7; first patched in 5.0.8. Supersedes the 5.0.7 pin added for APPSEC-2199. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Summary
Patches five Socket.dev-flagged Critical or High SCA vulnerabilities by raising/adding
pnpm.overridesfloors (the repo's established pattern for security pinning) and syncing the two workspacevitestspecs.vitestpicomatchbrace-expansionbrace-expansionpostcss.mapdisclosure (high, 7.5)Approach
pnpm.overrides, which replace workspace specs — so bumping a workspacepackage.jsonalone had no effect. Fix is to raise the override floors.vitestis pinned to exactly3.2.6(not a>=floor), because a floor resolved to the4.xmajor. Pinning keeps it on the 3.x line and matches the workspace specs.brace-expansionuses per-major scoped overrides (@1/@2/@5) so each instance moves to its patched release without forcing a cross-major upgrade. The@5pin lands on 5.0.8, which covers both APPSEC-2199 and APPSEC-2252 (CVE-2026-14257 was only patched in 5.0.8; there are no backports to the 1.x/2.x lines, so those instances remain at the latest available in their major — the OOM CVE only affects 5.x).picomatch/postcssresolve to the latest patch ≥ the required floor.Notes
cpu/osformat normalization from regenerating with the repo's declaredpnpm@10.20.0; the rest are the version bumps.react-router): risk-accepted separately. Its only fix is a major upgrade toreact-router@8.3.0(forcing React>=19.2.7+ Node 20→22), and the advisory only affects unstable RSC APIs / Framework/Data modes — this app uses Declarative Mode (<BrowserRouter>) exclusively, so it's not exploitable.Testing
pnpm -r teston Node 20 — all pass (scripts: 41, code-components: 28).