SkillTotal

Is langchain safe?

No malicious indicators - review capabilities before installing
Notable — review in context (capabilities are not malware):
  • Node.js filesystem read
  • Node.js filesystem write/delete

langchain is an AI npm_package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 2 risky constructs are reported for review. It can: filesystem read and filesystem write — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).

langchain 1.5.14

npm_package · npm:langchain
LOW
0
/ 100 risk score
Snapshot · scanned Sep 27, 2026 · langchain@1.5.14 · engine 0.53.0 / ruleset 60

Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of langchain's authors. Report a false positive.

Capabilities — what this component can do (not a risk score):
filesystem readfilesystem write

Behavioral traits

How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.

Filesystem reach
Tool Execution Context

Findings (2)

MEDIUMNode.js filesystem readST-FS-NODE-READ

The component reads files from disk.

const fileContent = await fs.readFile(this.getFullPath(key));

Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.

Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.

MEDIUMNode.js filesystem write/deleteST-FS-NODE-WRITE

The component writes or deletes files on disk.

await fs.unlink(this.getFullPath(key));
await Promise.all(entries.filter((file) => file.endsWith(".tmp")).map((tempFile) => fs.unlink(path.join(rootPath, tempFile)).catch(() => {})));
await fs.writeFile(tempPath, content);
await fs.writeFile(fullPath, content);
await fs.unlink(tempPath).catch(() => {});
await fs.unlink(tempPath).catch(() => {});

Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.

Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.

Check your own component

Run the same evidence-backed scan on any MCP server, agent skill, or package.

Scan your own component

How we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →