**Reference:** Gitea Run #83 security job #173, 2026-11-22. The source-only regenerated npm/pnpm lockfiles are **not CI acceptance** until the subsequent focused security workflow verifies frozen installs and registry advisory results.
## Advisory inventory (19 prior reported records)
`npm audit` reported **one affected Account Next.js package** associated with **seven IDs**, not seven different installed npm packages. `pnpm audit --prod` reported **18 Login Moderate records**, representing 7 Next.js IDs, 8 OpenTelemetry driver instrumentation records under a *single GHSA*, 1 HTTP instrumentation advisory, 1 glob and 1 minimatch. Previous HIGH/CRITICAL counts were zero.
| ID / Group | Affected package(s) and old pin | Verified immediate dependency parent | Security impact / required patched range | Source resolution, pending CI |
| --- | --- | --- | --- | --- |
| Seven Next.js GHSAs below | Account + Login direct `next@16.4.3` | Each application `package.json` | Information/cross-user cache disclosure/poisoning, SVG bypass, Edge HttpOnly header exposure and cross-client response injection; npm fix `16.4.6` | Both apps pin `next@16.4.6` in approved manifest/lock |
Original audit: Login Next fixed >=16.4.5; Account npm recommends >=16.4.6, so **16.4.6 exact** chosen for both plus matching `@next/eslint-plugin-next` (Login dev only). See https://www.npmjs.com/package/next and original Gitea security logs.
### Transitive parent and compatibility detail
This table identifies **immediate parents present in the archived PNPM lock graph**, not a claim that every vulnerable package is loaded at runtime or exploitable over a public request. Actual production reachability remains UNVERIFIED without a separate controlled analysis. PNPM's `--prod` audit flagged these lockfile packages, so they must not be suppressed solely because many parents are dev tools.
`auth/ui/v2/pnpm-workspace.yaml` already owns other root overrides and is explicitly READ ONLY in this phase. A `pnpm.overrides` entry in root `package.json` would conflict with or be ignored in the presence of workspace-defined overrides on modern PNPM; **no ineffective fake override is added**. Minimatch 11/glob 14 are semver major changes; forcing them without compatibility proof is disallowed.
### Reproducible lockfile / provenance rules
- Account npm v3 lock was generated by `npm install --package-lock-only --ignore-scripts --no-audit --no-fund`; **no app install/build/test**.
- Login pinned `pnpm@10.30.3` lock was generated by `pnpm install --lockfile-only --ignore-scripts --no-frozen-lockfile`; no project `node_modules`. The four imported PNPM workspace members and prior root overrides are unchanged.
- PNPM's lockfile-only regeneration removed prior unreachable snapshots inherited from a much larger official ZITADEL monorepo. Source files/proto/Login UI/auth code are unchanged. Compare exact Git diff: this is **lock resolution metadata**, not removal of application features.
- Security acceptance is only the single Gitea workflow run: frozen npm/pnpm installs, locked build/regression and live npm/pnpm advisory results. No blind blanket update, no lockfile hand-edited integrities.
**CI VERIFIED in Run #87:** the live registry audit did report two unchanged Moderate transitive vulnerabilities (`glob`, `minimatch`). See the terminal outcome section below. No claim of full security acceptance.
- **Account:** pinned npm v3 lock frozen install, Next.js 16.4.6/TypeScript production build and anonymous negative identity regressions PASS. Production npm audit **0 vulnerabilities** (0 Moderate/High/Critical), job #187 PASS.
- **Login:** pinned pnpm v10.30.3 **frozen install** (1131 packages), Nx proto/client/Next.js 16.4.6 standalone build PASS; upstream Vitest **84/84 test files, 1219/1219 unit tests PASS**. Its production pnpm audit had **zero High/Critical**, but **2 Moderate**; job #188 intentionally FAIL due fail-closed zero-Moderate gate.
- **Still open:** `GHSA-3g3m-2fjr-6pw4` (`glob`, upgrade >=14.0.2) and `GHSA-g3hv-75wg-m249` (`minimatch`, upgrade >=11.0.1). Immediate parent version constraints remain incompatible with blind semver-major upgrades. The authoritative PNPM workspace override file is read-only in P05-SEC-01.
- **No longer reported:** 7 old Next.js Login records, 9 old OpenTelemetry Login records, 1 old Account `next` vulnerable package record — 17/19 original records disappeared from current registry audit. This is not proof of runtime exploitability or of zero future advisories.
- Remaining P05-SEC-02 focus: narrow authorized `auth/ui/v2/pnpm-workspace.yaml` overrides or compatible parent dependency upgrades, reproducible pinned lock, exact transitive resolution and fail-closed Gitea frozen/security/build/unit acceptance. No login/auth/UI source changes.
**P05-SEC-01 classification: PATCH IMPLEMENTED AND BUILDS PASS; SECURITY ACCEPTANCE BLOCKED, not a production release.** Final docs-only SHA differs from the tested Run #87 source SHA.