@langchain/google-cloud-sql-pg@1.0.9-dev-1766775128110

LangChain.js integrations for Google Cloud SQL for PostgreSQL

  • latest version

    1.0.23

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    4 months ago

  • deprecated

    Package is deprecated

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @langchain/google-cloud-sql-pg 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
    • L
    SQL Injection

    @langchain/google-cloud-sql-pg is a LangChain.js integrations for Google Cloud SQL for PostgreSQL

    Affected versions of this package are vulnerable to SQL Injection via the PostgresChatMessageHistory.initialize() method due to the improper parameters validation before incorporating them into SQL statements. An attacker can execute arbitrary SQL commands by supplying crafted input with modified parameters table and schema.

    How to fix SQL Injection?

    Upgrade @langchain/google-cloud-sql-pg to version 1.0.22 or higher.

    <1.0.22