Why it matters
Listed so that AI use in code is inventoried and reviewed; it is not a vulnerability by itself.
How to fix it
Confirm the provider is approved for the data this code sends to it, and record it in your AI inventory. Suppress the finding once reviewed.
Example
The rule's own test fixtures, verbatim: the test suite requires the rule to report the first and not the second.
import Anthropic from "@anthropic-ai/sdk";
export const client = new Anthropic();import axios from "axios";
export const fetchJson = (url) => axios.get(url).then((r) => r.data);What TrustIvan reads
Runs on repository scans of JavaScript source once static analysis is turned on (SAST_RULES and the separately built analyzer image); it is off by default.
Weakness classes and references
Related checks
- Bcrypt low rounds (JavaScript)
JavaScriptSeverity: Medium
trustivan-javascript-bcrypt-low-rounds - Llm output to sink from request input (JavaScript)
JavaScriptSeverity: High
trustivan-javascript-taint-llm-output-to-sink - World writable permissions (JavaScript)
JavaScriptSeverity: Medium
trustivan-javascript-world-writable-permissions - Llm prompt injection system from request input (JavaScript)
JavaScriptSeverity: Medium
trustivan-javascript-taint-llm-prompt-injection-system - Electron node integration (JavaScript)
JavaScriptSeverity: High
trustivan-javascript-electron-node-integration - Llm unbounded output tokens (JavaScript)
JavaScriptSeverity: Low
trustivan-javascript-llm-unbounded-output-tokens
Terms: SAST (static application security testing), Taint analysis, CWE (Common Weakness Enumeration), OWASP Top 10
All static analysis (SAST) checks · The whole catalogue · How this works in TrustIvan · Documentation