@nestjs/microservices@11.1.18

Nest - modern, fast, powerful node.js web framework (@microservices)

  • latest version

    11.1.19

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @nestjs/microservices package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Uncontrolled Recursion

    @nestjs/microservices is a Nest - modern, fast, powerful node.js web framework (@microservices)

    Affected versions of this package are vulnerable to Uncontrolled Recursion through the handleData() function in packages/microservices/helpers/json-socket.ts. An attacker can crash the TCP microservice by sending a large burst of pipelined "<len>#<json>" frames in a single read, causing recursive frame processing to exhaust the call stack and terminate the connection. When the service processes untrusted TCP input, a crafted stream of many small valid frames can bring down the microservice and prevent it from responding to subsequent requests.

    How to fix Uncontrolled Recursion?

    Upgrade @nestjs/microservices to version 11.1.19 or higher.

    <11.1.19