Forgejo Issue #10 Security CVE Remediation
Summary
Addressed Forgejo issue #10 by remediating the active dependency CVEs called out in the report. This update moved direct WebSocket dependencies to patched versions and added workspace-level dependency overrides for vulnerable transitive packages. bun audit now reports No vulnerabilities found.
Changes Made
- Upgraded
wsin ingest services to^8.21.0in:services/ingest-equities/package.json,services/ingest-news/package.json, andservices/ingest-options/package.json. - Added workspace-level
overridesin rootpackage.jsonfor patched transitive packages:postcss^8.5.15,tar^7.5.15, andtmp^0.2.5. - Regenerated
bun.lockviabun installto enforce the resolved secure graph.
Context
Issue #10 documented 9 active advisories across runtime and build-time dependencies: six high-severity tar CVEs in the Electron Forge chain, one ws memory-disclosure advisory affecting ingest services, one postcss advisory in the web toolchain, and one tmp advisory in desktop packaging transitive dependencies.
Important Implementation Details
next@16.2.6still declarespostcss@8.4.31, so override pinning was required to force a patched resolver result.- The Electron Forge chain currently references
tar@^6.xtransitively, so override pinning was used to pull patchedtar@7.5.15and clear advisories without waiting for upstream major migration. - Direct
wsbumps were applied at each ingest service manifest for explicit runtime dependency hygiene.
Relevant Diff Snippets
package.json · security overrides
+ "overrides": {
+ "postcss": "^8.5.15",
+ "tar": "^7.5.15",
+ "tmp": "^0.2.5"
+ }
services/ingest-*/package.json · ws bump
- "ws": "^8.18.3"
+ "ws": "^8.21.0"
Snippets are rendered client-side with Diffs (diffs.com project) and include inline fallback text for offline viewing.
Expected Impact for End-Users
No user-facing behavior changes are expected. The impact is operational and security-focused: cleaner dependency posture and reduced known vulnerability exposure across ingest runtime and desktop/web toolchain surfaces.
Validation
bun installcompleted and regeneratedbun.lock.bun auditpassed withNo vulnerabilities found.bun testpassed: 246 tests, 0 failures.bun --cwd=apps/web run buildpassed (Next.js production build).bun --cwd=apps/desktop run typecheckpassed.
Issues, Limitations, and Mitigations
- This remediation relies partly on dependency overrides for transitive CVEs rather than upstream package-chain updates. Mitigation: lockfile is now pinned and validated via audit in CI/local runs.
- Override-based mitigation can drift if upstream manifests change unexpectedly. Mitigation: keep
bun auditin regular release checks. - This pass did not perform container image package CVE expansion, matching the issue's own stated scope limitation.
Follow-up Work
- Track Electron Forge and rebuild-chain updates to remove the
tar/tmpoverrides once upstream dependencies natively resolve patched versions. - If additional image-level CVE coverage is required, run a dedicated Docker image scan in a daemon-enabled environment and file any new issues separately.
- No additional Beads issue was created in this turn beyond
islandflow-3o0.