The Open Source Technology Improvement Fund is proud to share the results of our security audit of LangChain. The LangChain project is an open source software framework for application development leveraging LLMs (Language Learning Machines). Thanks to X41D-Sec and Alpha-Omega, both of LangChain’s framework languages (Python and TypeScript) underwent custom security work and whitebox pentest auditing.
Audit Process:
The auditors at X41D-Sec worked over 25 person days during spring 2026 on this security engagement. The work was performed against the LangChain, LangGraph, Lang-Smith Javascript and Python repositories of LangChain-ai. First they created a threat model, determining what is and isn’t a security issue in relation to the project. Once that model was created then they performed code review and testing in both frameworks, both to analyze code quality and identify bugs or security vulnerabilities in the code. In addition to this, X41 also reviewed 70 CI/CD workflows across the langchain-ai ecosystem.
Audit Results:
- 15 Issues with Security Impact
- 2 High
- 12 Medium
- 1 Low, 6 No severity ranking
- Lightweight Threat Model
- Custom Documentation
- Recommendations for Future Security Development and Code Hardening
LangChain is used in production by developers wanting to leverage LLMs in applications, for example by NVIDIA, Lyft, and Cisco to name a few. Shortly after this engagement, they started a vulnerability reporting process through Integriti. This work was processed through that pipeline. OSTIF would like to thank the Langchain maintainers and X41 auditors for their efforts on this work. If you would like to contribute to the Langchain project, you can see how on their Community page.
Thank you to the individuals and groups that made this engagement possible:
-
LangChain maintainers and community, especially: Eugene Yurtsev, John Kennedy, Nick Hollon, and Hunter Lovell
-
X41D-Sec, especially: Yassine El Baaj, Rober Femmer, Antonela Conti, and Markus Vervier
-
Alpha-Omega You can read the Audit Report HERE
Everyone around the world depends on open source software. If you’re interested in financially supporting this critical work, reach out to [email protected].