langchain-core@0.3.17 vulnerabilities

Building applications with LLMs through composability

  • latest version

    1.2.0

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    1 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the langchain-core 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
    Template Injection

    langchain-core is a Building applications with LLMs through composability

    Affected versions of this package are vulnerable to Template Injection in the prompt template system. An attacker can access internal Python object attributes by submitting specially crafted template strings to ChatPromptTemplate and related prompt template classes.

    Note: The vulnerability specifically requires that applications accept template strings (the structure) from untrusted sources, not just template variables (the data).

    Most applications either do not use templates or else use hardcoded templates and are not vulnerable.

    How to fix Template Injection?

    Upgrade langchain-core to version 0.3.80, 1.0.7 or higher.

    [,0.3.80)[0.4.0.dev0,1.0.7)