Skip to content

fix(security): remove server path from mission active POST response - #876

Open
Esc1200 wants to merge 1 commit into
vibeforge1111:mainfrom
Esc1200:spark/fix-mission-active-path-leak
Open

fix(security): remove server path from mission active POST response#876
Esc1200 wants to merge 1 commit into
vibeforge1111:mainfrom
Esc1200:spark/fix-mission-active-path-leak

Conversation

@Esc1200

@Esc1200 Esc1200 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Bug: POST /api/mission/active response leaks server filesystem path

Severity: LOW

File: src/routes/api/mission/active/+server.ts (line 232)

Problem:
The POST handler for /api/mission/active includes the absolute server filesystem path (missionPath) in its success response as the path field. This exposes internal directory structure (e.g. /home/user/.vibeship/missions/active.json) to API clients.

Fix:
Removed the path field from the success response JSON. The path is still used internally for file write operations but is no longer sent to clients. The response retains success and message fields.

Testing:

  • Mission state save still works correctly
  • Response no longer exposes filesystem paths

… response

The POST /api/mission/active endpoint included the absolute server
filesystem path (missionPath) in its success response. This leaks
internal directory structure to API clients.

Removed the 'path' field from the success response JSON. The path
is still used internally for file operations but is no longer
exposed to clients.
ifeoluwaaj pushed a commit to ifeoluwaaj/vibeship-spawner-ui that referenced this pull request Jun 27, 2026
Consolidates a same-author path-redaction series:
- Remove tracePath from creator mission GET response (vibeforge1111#877)
- Remove server path from mission active POST response (vibeforge1111#876)
- Remove rawResponse field from analyze error response (vibeforge1111#874)
- Remove x-spark-preview-root header leaking server path (vibeforge1111#873)
- Use trusted x-real-ip / last x-forwarded-for entry for the
  rate-limiter client key (vibeforge1111#875)

Surviving-line indentation normalized back to file style (the patches
bundled an over-indentation reflow of untouched lines).

Co-authored-by: Esc1200 <Esc1200@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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