Packages / @grpc/grpc-js / Security
@grpc/grpc-js: The server transmits some error messages thrown by method handlers to the client in status messages
Affected releases · @grpc/grpc-js
- 1.x1.0.0 – 1.14.4Fixed in 1.14.5
- 0.8.x and older0.1.0 – 0.8.1No fix, no longer updated
On 1.x, the newest line:
npm install @grpc/grpc-js@1.14.5Affected
1.0.0 – 1.13.5
144 releases
Fixed
1.13.6 – 1.13.7
2 releases
Affected
1.14.0 – 1.14.4
5 releases
Fixed
1.14.5 – 1.14.6
2 releases, latest
Affected
0.1.0 – 0.8.1
49 releases
Is your project affected?
Paste your package.json, or type the range you declare for @grpc/grpc-js. It is read in your browser and sent nowhere.
What happens
Impact
If an application method handler crashes, the error message is included in the status message sent to the client. This can leak to the client any sensitive data that may be included in the error message. This impacts anyone using @grpc/grpc-js to run servers.
Patches
This vulnerability is fixed in 1.13.6 and 1.14.5.
Workarounds
This can be avoided by using a top-level error handler in method handlers to strip out sensitive error information.