langsmith@0.3.84 vulnerabilities

Client library to connect to the LangSmith Observability and Evaluation Platform.

  • latest version

    0.5.7

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    7 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the langsmith 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
    Server-side Request Forgery (SSRF)

    langsmith is a Client library to connect to the LangSmith Observability and Evaluation Platform.

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) due to the improper validation of api_url and api_key fields in baggage headers in RunTree.from_headers() and RunTree.fromHeaders() functions. An attacker can cause the exfiltration of sensitive trace data to attacker-controlled endpoints by injecting arbitrary api_url values through the baggage header, which are then used by the SDK to send run data to malicious URLs.

    Note:

    This issue affects applications, utilising TracingMiddleware and calling RunTree.from_headers() or RunTree.fromHeaders() with untrusted HTTP headers.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade langsmith to version 0.4.6 or higher.

    >=0.3.41 <0.4.6