Skip to content

Conversation

@ZeroWave022
Copy link
Member

@ZeroWave022 ZeroWave022 commented Oct 18, 2025

We now show the error message correctly.

I am however a little unsure if the approach is safe, because I'm not sure whether we're the only ones that can throw the TRPCError class. If some other part of the code in the procedure throws it, for example the auth, we could be risking exposing secrets

We could alternatively make the procedure return some kind of error object with the message

@ZeroWave022
Copy link
Member Author

It looks like tRPC's source code may throw TRPCError in some cases. Therefore we can confirm it's not safe to show the error messages directly. This security vulnerability is fixed in 4e9ba7c

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