@ai-sdk/provider-utils@5.0.0

  • latest version

    5.0.7

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @ai-sdk/provider-utils 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
    • M
    Allocation of Resources Without Limits or Throttling

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in various respons.text() invocations in response-handler.ts, which accept and buffer arbitrarily long request strings. Functions like createJsonResponseHandler() and createJsonErrorResponseHandler() perform these unbounded calls, without recourse to protections afforded by higher level JSON handling APIs. An attacker who can convince a client to connect to a malicious server can trigger an out of memory failure.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade @ai-sdk/provider-utils to version 4.0.33, 5.0.1 or higher.

    <4.0.33>=5.0.0-beta.0 <5.0.1