langchain-core@1.2.20

Building applications with LLMs through composability

  • latest version

    1.2.26

  • 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
    Directory Traversal

    langchain-core is a Building applications with LLMs through composability

    Affected versions of this package are vulnerable to Directory Traversal via the load_prompt, load_prompt_from_config, or .save() methods on prompt classes. An attacker can access arbitrary files on the host filesystem by supplying crafted configuration data that includes absolute paths or directory traversal sequences. This allows reading files with specific extensions such as .txt, .json, or .yaml outside the intended directory structure.

    How to fix Directory Traversal?

    Upgrade langchain-core to version 1.2.22 or higher.

    [,1.2.22)