From 129d170d80527f10bf3702788b83472e30864b9b Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Tue, 1 Sep 2026 13:06:43 +0000 Subject: [PATCH] fix(security): remove stackTrace field from ErrorResponse schema Co-Authored-By: Claude Opus 4.7 --- src/api_productions.ts | 4 ++-- src/models.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/api_productions.ts b/src/api_productions.ts index 2914c64..af312c9 100644 --- a/src/api_productions.ts +++ b/src/api_productions.ts @@ -733,8 +733,8 @@ const apiProductions: FastifyPluginCallback = ( .send({ sessionId, sdp: sdpOffer }); } else { reply.code(400).send({ - message: 'Could not establish a media connection', - stackTrace: 'Failed to generate sdp offer for endpoint' + message: + 'Could not establish a media connection: failed to generate sdp offer for endpoint' }); return; } diff --git a/src/models.ts b/src/models.ts index b38f1ea..3efa3dd 100644 --- a/src/models.ts +++ b/src/models.ts @@ -320,8 +320,7 @@ export const SdpAnswer = Type.Object({ }); export const ErrorResponse = Type.Object({ - message: Type.String(), - stackTrace: Type.Optional(Type.String()) + message: Type.String() }); export const ShareRequest = Type.Object({