npm package report

Is langchain safe?

langchain (npm) has 1 known vulnerability, the worst rated MODERATE. Upgrade to 0.2.19 or later to clear it. No malicious-package signal is recorded.

// reach

5 direct dependencies

3 carry known advisories, worst HIGH

45 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


cvss
6.5
medium

CVSS v3.0 base score out of 10

epss
0.56%
medium

chance of exploitation in 30 days, 47th percentile of all CVEs

xyz score
not scored

CyberXYZ composite out of 10

fig. 01 — GHSA-hc5w-c9f8-9cc4, the advisory selected below

// 1 advisories

A path traversal vulnerability exists in the getFullPath method of langchain-ai/langchainjs version 0.2.5.

Full advisory text at GitHub advisory or NVD.

// cvss v3.0 vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
// questions
Is langchain safe to install?

CyberXYZ does not call a package safe in absolute terms. It records 1 known vulnerability for langchain (npm), the worst rated MODERATE, and no malicious-package signal. Whether it is acceptable depends on the version you run.

Does langchain have known vulnerabilities?

Yes. CyberXYZ records 1 known vulnerability for langchain (npm), the worst rated MODERATE. They are GHSA-hc5w-c9f8-9cc4.

Which version of langchain should I use?

0.2.19 or later clears every advisory recorded for langchain (npm). Check the release you pick before installing it.

How do I check langchain before installing?

Search langchain in CyberXYZ Check at https://cyberxyz.io/check?q=langchain. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.


Checked 2026-11-14 at 10:27 UTC. The most recent advisory here was published 2024-10-29. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.