Intel

AIKIDO-2024-10244

langchain is vulnerable to Insertion of Sensitive Information into Log File

Insertion of Sensitive Information into Log File Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 10, 2024

10

Low Risk

This Affects:

jslangchain
0.1.0 - 0.2.17
Fixed in 0.2.18
Are you affected? Scan for Free

TL;DR

Affected versions of the package expose sensitive information in log files. Printing an instance of ChatMistralAI includes the API key in plaintext in the output, potentially compromising the key.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

langchain is vulnerable to Insertion of Sensitive Information into Log File in versions 0.1.0 - 0.2.17.

How to fix this

Upgrade the langchain library to the patch version.