Skip to content

fix(security): return generic error message on retrain failure instead of leaking stderr - #2376

Open
ionfwsrijan wants to merge 5 commits into
gopaljilab:mainfrom
ionfwsrijan:fix/issue-2350-retrain-stderr-leak
Open

fix(security): return generic error message on retrain failure instead of leaking stderr#2376
ionfwsrijan wants to merge 5 commits into
gopaljilab:mainfrom
ionfwsrijan:fix/issue-2350-retrain-stderr-leak

Conversation

@ionfwsrijan

Copy link
Copy Markdown
Contributor

Summary

Fixes #2350 — The retrain failure response exposed err.stderr which could
contain internal paths, environment variables, or other sensitive information.

Changes

  • server/routes.ts: Changed the retrain failure response to return a generic
    error message instead of the raw stderr output.

Testing

  • Verified that retrain failure returns a safe generic error message.
  • Verified that stderr is logged server-side but not exposed to clients.

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

@ionfwsrijan is attempting to deploy a commit to the gopaljilab's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the type:bug Something isn't working or throwing errors. label Jul 13, 2026
- Fix translation.json missing comma after myHealth section (blocked 18 client test suites)
- Fix access-audit.test.ts: update assertion to match implementation 'PHI Access Granted'
- Fix fileValidation.ts: swap extension check before MIME check to match test expectations
- Fix batchAuthMiddleware.ts: check emailVerified instead of verified to match session shape
- Fix batchAuthMiddleware.test.ts: update mock session to use emailVerified
@github-actions github-actions Bot added the type:security Vulnerability fixes or security-related enhancements. label Jul 13, 2026
@ionfwsrijan

Copy link
Copy Markdown
Contributor Author

@gopaljilab Please review this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Something isn't working or throwing errors. type:security Vulnerability fixes or security-related enhancements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Model Retrain Failure Leaks Python stderr (Stack Traces, File Paths, Environment Details) to HTTP Client

1 participant