Skip to content

chore(web/app): remediate Dependabot vulnerabilities (#7327) - #7335

Merged
mdmohsin7 merged 1 commit into
mainfrom
rex/web-app-deps
May 17, 2026
Merged

mdmohsin7 merged 1 commit into
mainfrom
rex/web-app-deps

Conversation

@mdmohsin7

Copy link
Copy Markdown
Member

Part of #7327 (web Tier 1, service-by-service).

Result

npm audit: 12 → 0 (was 1 critical / 7 high / 4 moderate).

Changes (web/app/package.json + package-lock.json only)

  • Non-breaking npm audit fix: protobufjs 7.5.6, next 16.2.6 (in-^16), preact 10.28.2, flatted, minimatch, picomatch, lodash, @protobufjs/utf8
  • postcss: devDep ^8 → ^8.5.10 + overrides: {"postcss":"$postcss"} to dedupe next's exact-pinned [email protected] → patched 8.5.14 (GHSA-qx2v-qp2m-jg93), avoiding npm's absurd next→9 downgrade suggestion

Validation

  • npm audit → 0
  • tsc --noEmit → clean
  • next build → success (prod compile)

Note: npm run lint (next lint) is broken on main itself — Next 16 removed the lint subcommand; out of scope for this dep PR.

🤖 Generated with Claude Code

npm audit 12 → 0 (was 1 critical / 7 high / 4 moderate).
- audit fix (non-breaking) bumps: protobufjs 7.5.6, next 16.2.6,
  preact 10.28.2, flatted, minimatch, picomatch, lodash, @protobufjs/utf8
- postcss: devDep ^8 → ^8.5.10 + `overrides: {"postcss":"$postcss"}`
  to dedupe next's exact-pinned [email protected] (GHSA-qx2v-qp2m-jg93)
  to patched 8.5.14 without the absurd next→9 downgrade npm suggested.

Validated: npm audit 0, tsc --noEmit clean, `next build` succeeds.
Note: `npm run lint` ("next lint") is broken on main already — Next 16
removed the `lint` subcommand; out of scope for this dep PR.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@mdmohsin7
mdmohsin7 marked this pull request as ready for review May 17, 2026 16:59
@greptile-apps

greptile-apps Bot commented May 17, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR remediates 12 npm audit vulnerabilities (1 critical, 7 high, 4 moderate) in web/app by running npm audit fix and adding a postcss overrides entry to force Next.js's exact-pinned [email protected] up to the patched 8.5.14 (GHSA-qx2v-qp2m-jg93).

  • package.json: postcss devDependency tightened to ^8.5.10; "overrides": {"postcss": "$postcss"} added so npm deduplicates all nested postcss copies to the patched version instead of keeping next's exact pin.
  • package-lock.json: next (16.1.1→16.2.6), postcss (8.5.6→8.5.14), protobufjs (7.5.4→7.5.8), lodash (4.17.21→4.18.1), minimatch (3.1.2→3.1.5), picomatch, flatted, preact, and a range of @babel/* transitive deps updated; next's formerly-nested [email protected] entry is absent from the new lock file, confirming the override took effect.

Confidence Score: 5/5

Safe to merge — all changes are in-range dependency bumps driven by npm audit fix, no application logic is touched, and the postcss override correctly removes the vulnerable nested copy.

Both changed files are purely dependency manifests. Every version update stays within the already-declared semver ranges (^16, ^8, ^4). The postcss $postcss override is correct npm syntax and the lock file confirms next's formerly-nested [email protected] entry was eliminated. The PR author reports tsc --noEmit and next build both pass.

No files require special attention.

Important Files Changed

Filename Overview
web/app/package.json Tightens postcss devDependency to ^8.5.10 and adds npm overrides to deduplicate next's exact-pinned [email protected] to the patched 8.5.14
web/app/package-lock.json Lock file regenerated after npm audit fix; bumps next (16.1.1→16.2.6), postcss (8.5.6→8.5.14), protobufjs (7.5.4→7.5.8), lodash (4.17.21→4.18.1), minimatch (3.1.2→3.1.5), picomatch, flatted, preact, @babel/* and other transitive deps — next's nested [email protected] entry removed via override

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[npm audit fix] --> B[Direct dep updates]
    A --> C[postcss override strategy]

    B --> D[next 16.1.1 → 16.2.6]
    B --> E[protobufjs 7.5.4 → 7.5.8]
    B --> F[lodash 4.17.21 → 4.18.1]
    B --> G[minimatch 3.1.2 → 3.1.5]
    B --> H[picomatch / flatted / preact bumps]

    C --> I[postcss devDep ^8 → ^8.5.10 resolves to 8.5.14]
    C --> J[overrides: postcss = $postcss]

    I --> K[Top-level node_modules/[email protected]]
    J --> L[next pin [email protected] REMOVED from node_modules/next/node_modules/]
    L --> K

    K --> M[GHSA-qx2v-qp2m-jg93 patched]
    D --> N[CVEs in next 16.1.x patched]
    E --> O[protobufjs vulns patched]

    style M fill:#90EE90
    style N fill:#90EE90
    style O fill:#90EE90
Loading

Reviews (1): Last reviewed commit: "chore(web/app): remediate Dependabot vul..." | Re-trigger Greptile

@mdmohsin7
mdmohsin7 merged commit 02f1d90 into main May 17, 2026
3 checks passed
@mdmohsin7
mdmohsin7 deleted the rex/web-app-deps branch May 17, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant