GHSA-9CVR-5WV9-2GXR
SSRF bypass via Cheerio/Playwright/Puppeteer document loaders — not covered by httpSecurity deny list
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 3.1.4 | flowise · -33 d desde divulgación | |
| Divulgación | Publicada | GHSA-9CVR-5WV9-2GXR divulgada · CVSS 7.6 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The Cheerio, Playwright, and Puppeteer document loader nodes fetch user-provided URLs without calling `checkDenyList()` or using `secureFetch`. They instantiate LangChain's built-in loader classes which perform their own HTTP requests, bypassing the SSRF protection in `httpSecurity.ts`.
This is an incomplete fix. PR #5886 (March 10) added `secureFetch`/`secureAxiosRequest` to the API Loader, FireCrawl, Spider, and 7 other components. The three document loaders were not included.
Affected Code
Cheerio (`packages/components/nodes/documentloaders/Cheerio/Cheerio.ts:157`):
const loader = new CheerioWebBaseLoader(url, params)
docs = await loader.load()URL comes from `nodeData.inputs?.url`. Only `linkifyjs.test(url)` validation (format check, not IP check). `CheerioWebBaseLoader._scrape()` internally calls raw `fetch(url)` outside Flowise's security layer.
Playwright and Puppeteer loaders follow the same pattern with their respective LangChain classes calling `page.goto(url)` via browser instances.
Protected Code (for contrast)
The API Loader (`packages/components/nodes/documentloaders/API/APILoader.ts`) correctly imports and uses `secureAxiosRequest` from `httpSecurity.ts`.
The `webCrawl()` utility in `utils.ts` correctly calls `checkDenyList(stringURL)` and `secureFetch(currentURL)`. But the direct loader path does not go through `webCrawl()`.
Proof of Concept
- Create a chatflow with a Cheerio Web Scraper node
- Set URL to `http://169.254.169.254/latest/meta-data/iam/security-credentials/`
- Connect to a text output
- Execute the chatflow
- LangChain's CheerioWebBaseLoader fetches the URL with no IP validation
- AWS metadata returned as document content
Impact
Full-read SSRF through document loader nodes. Response content is returned as document text. Cloud metadata, internal services, and private network resources are reachable. Consistent with the impact of GHSA-fvcw-9w9r-pxc7 and GHSA-hr92-4q35-4j3m.
Suggested Fix
Add `checkDenyList(url)` before instantiating the LangChain loaders:
import { checkDenyList } from '../../../src/httpSecurity'
// Before: const loader = new CheerioWebBaseLoader(url, params)
await checkDenyList(url)
const loader = new CheerioWebBaseLoader(url, params)Apply to Cheerio.ts, Playwright.ts, and Puppeteer.ts.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmflowise |
Corregida | 3.1.4 | -33 d | 3.1.4 no afectada |
npmflowise-components |
Corregida | 3.1.4 | -33 d | 3.1.4 no afectada |
3.1.4Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-9cvr-5wv9-2gxrLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
