Add Scavio tool node#6595
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new Scavio search tool and its corresponding credential configuration to enable real-time web searches. The feedback highlights a security concern regarding Server-Side Request Forgery (SSRF) due to the direct use of raw axios instead of the project's centralized secureAxiosRequest wrapper. Additionally, it is recommended to validate the presence of the Scavio API key during initialization to prevent silent runtime failures.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| @@ -0,0 +1,188 @@ | |||
| import axios from 'axios' | |||
There was a problem hiding this comment.
To prevent Server-Side Request Forgery (SSRF) vulnerabilities, Flowise uses a centralized HTTP security wrapper (httpSecurity.ts) that implements deny-list validation and IP pinning logic. Directly importing and invoking raw axios bypasses these SSRF mitigations entirely. Please use secureAxiosRequest from ../../../src/httpSecurity instead of raw axios.
| import axios from 'axios' | |
| import { secureAxiosRequest } from '../../../src/httpSecurity' |
| const { data } = await axios.post('https://api.scavio.dev/api/v2/google', body, { | ||
| headers: { | ||
| 'Content-Type': 'application/json', | ||
| Authorization: `Bearer ${this.apiKey}` | ||
| } | ||
| }) |
There was a problem hiding this comment.
Use the secured secureAxiosRequest wrapper instead of raw axios to ensure that all outbound requests are properly validated against the SSRF deny-list.
const { data } = await secureAxiosRequest({
url: 'https://api.scavio.dev/api/v2/google',
method: 'POST',
data: body,
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + this.apiKey
}
})| const scavioApiKey = getCredentialParam('scavioApiKey', credentialData, nodeData) | ||
|
|
There was a problem hiding this comment.
It is recommended to validate that the scavioApiKey is present during the node's initialization. Throwing a clear error when the API key is missing prevents silent failures or confusing runtime errors when the tool is executed.
| const scavioApiKey = getCredentialParam('scavioApiKey', credentialData, nodeData) | |
| const scavioApiKey = getCredentialParam('scavioApiKey', credentialData, nodeData) | |
| if (!scavioApiKey) { | |
| throw new Error('Scavio API Key is missing. Please connect your Scavio API credential.') | |
| } |
References
- When a feature requires a specific configuration (e.g., an API key for a sandboxed environment), it is preferable to throw an error if the configuration is missing rather than silently falling back to a different implementation.
|
Thanks for the review. Addressed both points: the node now uses |
Description
Adds a Scavio tool node under
Tools, alongside the existing search nodes (Tavily, SerpAPI, Brave, Exa). Scavio is a real-time search API for AI agents (a unified API over Google, YouTube, Amazon, Walmart, Reddit, TikTok, and Instagram) that returns clean JSON.The node returns a LangChain
Toolthat searches Google in real time and returns results (title, url, description) as JSON, so it plugs into any agent/chain that accepts a Tool. It follows the same structure as the existingTavilyAPInode.Files
packages/components/nodes/tools/Scavio/Scavio.ts— the tool nodepackages/components/nodes/tools/Scavio/scavio.svg— iconpackages/components/credentials/ScavioApi.credential.ts— API-key credentialHow it works
Docs: https://scavio.dev/docs