6.6 KiB
Next 16.4.6 compatible security/build qualification
Status: bounded build-security candidate VERIFIED with explicit remaining audit/visual limits. Initial full regression FAILED on two independently reproduced baseline test-label defects; focused corrected suite PASSED. This is not a fresh all-green full run, integrated security or release acceptance.
Baseline: 81d56fc9fb86b168f5e1892f0dd018de305adc54, branch codex/next-security-patch. Latest owner request explicitly asks to resolve the build/browser security warning with a verified compatible fix. Scope is the existing frontend package and lock only: exact next and eslint-config-next 16.4.1 to 16.4.6, including their existing Next-family transitive lock entries. No new/removed packages or unrelated dependency updates; no runtime code, schema, provider, locale rollout or UI redesign.
Verified cause and target
Fresh official npm bulk advisory response identifies GHSA-mfr8-8qww-v76h and GHSA-vc7v-qv4w-wrv8. Both returned ranges include 16.4.1 and end at 16.4.4. Queried 16.4.5 and 16.4.6 match neither range. The 16.4.5 release contains security fixes; 16.4.6 adds patch backports and was the live npm latest. Registry responses, distribution integrity, advisory details and compatibility checks are retained in evidence.
Node24.19.0 satisfies target >=20.9.0; existing React/react-dom19.2.4 satisfy the target peers. Old package's build nudge consults advisory ranges and omits IDs in its rendered warning. Its suggested background security-agent command was not executed. No warning dismissal, bypass, configuration suppression or retry against the unchanged vulnerable version occurred.
The application exports static files served by nginx; the reported server-side use-cache paths therefore require architecture-specific exposure review. This is an inference about that deployment model, not proof of non-exposure, exploit testing or a reason to retain an advisory-affected dependency.
Executed checks
- PASSED: isolated package-lock update and fresh
npm ciusing E-drive cache/temp; 13 Next-family lock entries changed, no package additions/removals. - PASSED: standard
npm run buildon 16.4.6. Compile, TypeScript and static export completed, exit0. No security warning bypass. Built output is local candidate output only. - PASSED: full ESLint
eslint . --max-warnings=0, exit0; source diff whitespace check. - PASSED: existing controlled discovery/mobile-filter browser verifier against this fresh export: 36 journeys, 108 accessibility scans/captures across nine widths, EN/NB and light/dark; no page errors or unexpected writes. All APIs synthetic. Companies endpoint unavailable; Google Fonts deliberately blocked. Screenshots consequently do not establish intended-font visual acceptance.
- FAILED initial full frontend Jest in-band/no-cache: 128 suites passed/one failed, 1,633 cases passed/two failed/1,635 total; exit1, 1,284 seconds. Both failures expect retired Build package wording. The unchanged A3 baseline independently reproduces exactly those two failures (two other cases pass). Only the two stale test selectors now use approved Prepare application wording; route/target assertions are unchanged. Focused corrected suite PASSED four/four on the patched dependencies. These four overlap the initial1,635; do not add totals or claim a new green full run. Application runtime source did not change.
- PASSED: existing controlled discovery-to-tracker browser mode on the same export: 36 journeys/144 axe scans and captures, 36 fixture previews/36 fixture writes, no page errors/unexpected writes/unavailable API reads. Nine widths, EN/NB and light/dark. No real provider/import/mutation.
- VISUAL REVIEW: inspected four retained captures: desktop EN/light filter layout and tracked table; mobile NB/dark filter drawer and import review. Controls and content fit without material horizontal clipping in these samples. The tall mobile review remains scrollable; font substitution from deliberately blocked Google Fonts prevents intended typography/final A3 visual acceptance. This is a limited sample, not all-route/tablet/native review.
- FAILED (remaining findings): fresh
npm audit --package-lock-only --jsonexits1, 50 vulnerabilities (7 moderate,43 high,0 critical), with nonextentry. Earlier install summary separately reported51 (7 moderate/44 high). Do not combine or silently reconcile different observations. Major downgrade suggestions were not applied. Remaining dev-tool and transitive findings need compatible scoped triage. - NOT RUN: backend regression (no backend change), hosted CI, native devices/assistive technology, provider/model/live service checks, full integrated security/recovery/release. Existing PDF renderer metrics/visual acceptance were not reopened.
Existing allowScripts policy withheld unrs-resolver@1.12.2 postinstall. Policy unchanged; install/build/lint passed despite that withholding. This does not qualify every installation environment or every postinstall action.
Preservation, rollback and integration
Routes, canonical Career Profile, CV/letter versions, null-as-inherit overrides, frozen documents/import compatibility, RD21, ownership/session/permission safeguards and language distinctions have no source edits. Framework compatibility still needs the pending full regression and affected browser qualification. AST application graph source is unchanged; package/lock changes do not imply a new runtime architecture acceptance.
After validation, publish this isolated non-production branch and independently verify its remote ref. Integrate only the bounded package/lock change plus evidence into the A3 development branch, preserving unrelated work. Do not alter frozen Phase10 candidate evidence or claim its gate accepted. Rollback is a dedicated revert of this package/lock commit followed by locked install/rebuild; the old version's known build/advisory blocker returns, so rollback is not a security-qualified release. No main merge, production deployment or automatic rollback execution is authorised here.
Native artifact root: E:/Storage/Projects/Active/temp docs/jobjakt-local-build/next-security-patch-evidence. Evidence receipts retain raw gzip plus LF canonical hashes; screenshots remain at that root pending final selection. Formal locale stages, Phase10/Product Review/Global Jobs/provider rights, final A3/security/recovery/release gates remain open.