Skip to content

security: fix decoy root manifest — 92 phantom vulns → 3 real (0 critical)#218

Merged
Hardonian merged 1 commit into
mainfrom
security-migration
Jul 8, 2026
Merged

security: fix decoy root manifest — 92 phantom vulns → 3 real (0 critical)#218
Hardonian merged 1 commit into
mainfrom
security-migration

Conversation

@Hardonian

Copy link
Copy Markdown
Owner

Security fix (decoy manifest correction)

Root cause

The root package.json declared next@^9.3.3 with a stale package-lock.json that Dependabot scanned, reporting 92 vulnerabilities (1 critical, 25 high). This was a phantom — the root manifest is NOT what builds. The actual Next.js app is in ./site/ (next@16.2.6, react@19.1.0) and is the target of vercel.json + CI (working-directory: site).

Changes

  • Removed the misleading next@9 dependency from root package.json.
  • Deleted the stale root package-lock.json (next@9 tree).
  • Bumped site/: next@latest, postcss@latest, brace-expansion@latest.

Result

  • Real app: 3 vulnerabilities (0 critical, 0 high, 2 moderate, 1 low) — down from the false 92.
  • next build passes (exit 0, 16 static routes prerendered).
  • Remaining 3 are minor transitive (babel-loader, postcss, brace-expansion) with no critical/high production exposure.

Verification

  • cd site && npm run build → exit 0.
  • npm audit in site/ → 3 vulnerabilities.
  • Removed the unused root lockfile so Dependabot scans ./site correctly going forward.

Auto-merge enabled; merges when CI green.

…eal)

Root package.json declared next@^9.3.3 with a stale package-lock.json
that Dependabot scanned (92 phantom vulns). The actual Next.js app
lives in ./site (next@16, react@19) and is what builds/deploys.

- Removed decoy next@9 dep from root package.json
- Deleted stale root package-lock.json (next@9 tree)
- Bumped site/: next@latest, postcss@latest, brace-expansion@latest

Result: real app has 3 vulns (0 critical, 0 high) — was falsely
reporting 92 from the unused root lockfile. Site builds clean
(next build exit 0, 16 static routes).
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mel-mesh-edge-layer Ready Ready Preview, Comment Jul 8, 2026 2:56am

@Hardonian
Hardonian merged commit 9ce31a7 into main Jul 8, 2026
17 of 19 checks passed
@Hardonian
Hardonian deleted the security-migration branch July 8, 2026 03:27
Comment thread package.json
"react-dom": "19.2.7"
}
}
} No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: Missing trailing newline at end of file

POSIX text files should end with a newline character. The absence of a trailing newline can cause issues with some linters, formatters, and text-processing tools.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
package.json 20 Missing trailing newline at end of file
Files Reviewed (2 files)
  • package.json - 1 issue
  • site/package.json

Fix these issues in Kilo Cloud


Reviewed by step-3.7-flash · Input: 284.5K · Output: 10.5K · Cached: 500.7K

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