Skip to content

fix(security): remove stackTrace field from ErrorResponse schema - #298

Open
birme wants to merge 1 commit into
mainfrom
bug-fixer/258-errorresponse-stacktrace
Open

fix(security): remove stackTrace field from ErrorResponse schema#298
birme wants to merge 1 commit into
mainfrom
bug-fixer/258-errorresponse-stacktrace

Conversation

@birme

@birme birme commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove the optional stackTrace field from the ErrorResponse TypeBox schema in src/models.ts so internal implementation details can never leak to clients.
  • Update the 400 response in src/api_productions.ts to fold the useful detail into the existing human-readable message field instead of emitting stackTrace.
  • Verified no other stackTrace references remain in the codebase.

Test plan

  • npm run typecheck clean
  • npm test (243 tests, 14 suites passing)
  • npm run lint (0 errors)

Closes #258

Co-Authored-By: Claude Opus 4.7 <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.

Security: ErrorResponse TypeBox schema includes optional stackTrace field — risk of leaking internal stack traces

2 participants