langchain-cloudflare@0.1.10 vulnerabilities

Langchain Integrations for Cloudflare's WorkersAI and Vectorize

  • latest version

    0.2.0

  • latest non vulnerable version

  • first published

    9 months ago

  • latest version published

    12 days ago

  • licenses detected

    • [0.1.1,0.2.0)
  • Direct Vulnerabilities

    Known vulnerabilities in the langchain-cloudflare 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
    • C
    SQL Injection

    langchain-cloudflare is a Langchain Integrations for Cloudflare's WorkersAI and Vectorize

    Affected versions of this package are vulnerable to SQL Injection due to improper sanitization of nested metadata in D1 database operations. The d1_upsert_texts and ad1_upsert_texts methods construct SQL queries using string formatting without escaping special characters, allowing nested metadata fields containing single quotes to break out of SQL string literals.

    How to fix SQL Injection?

    Upgrade langchain-cloudflare to version 0.1.11 or higher.

    [,0.1.11)