Tags: ai-security, ssrf, rce, cve, responsible-disclosure, llm-platforms
Disclosure notice. Several findings below are in coordinated disclosure right now. This post runs at impact-class level: what the flaw class is, how the products treat user-supplied URLs and dev defaults, and where each report stands. Reproduction steps and technical chains land here when each advisory publishes. No payloads, on purpose.
Over the past months I took a hard look at the software layer that sits around LLMs: API gateways (one-api and a fork of it), agent builders (Dify, Langflow), and RAG platforms (RAGFlow). Not the models. the plumbing: the products that take a URL, a base endpoint, a file path or a "tool" from a user and act on it with the server's own network position.
The theme that came out of it is simple and worth stating plainly: every one of these products fetches user-supplied URLs server-side somewhere, and the defenses on those fetches are point-wise, young, and incomplete. Where a guard existed, the interesting bugs lived one hop past it (redirects), one layer above it (a tier assumption), or in a product surface the guard simply did not cover.
The public one: one-api image_url SSRF
The first stop was one-api, the popular LLM API gateway. Its image_url handling in the
chat relay performs a bare server-side HTTP fetch with no SSRF validation and no redirect
restriction. I confirmed full read impact in a lab: content from an internal-only
listener was relayed back through a 200 completion, base64 and all. Any API token is
enough.
Honesty first: this is not my 0-day. It is a duplicate of a public GitHub issue (#2387) that remains unfixed on the latest release. I recorded it as ecosystem evidence and moved on. I also swept one-api's web layer properly looking for more (order-by SQLi, exec sinks, mass assignment, OAuth, password reset, token auth, redemption races): clean. The gateway's web layer is well-hardened for classic classes; the URL-ingestion path is the real bug and it is already public.
The systemic read: URL ingestion is the attack surface
That finding turned into a target-selection thesis. Look at the neighbors:
- LMDeploy CVE-2026-63764: same class (image load, 302-redirect bypass, CVSS 9.3)
- LangChain: SSRF via
image_urltoken counting (February 2026 advisory) - new-api (the one-api fork): built a four-CVE SSRF filter lineage over time, and I still found a DNS-rebinding bypass of its current guard on the latest stable. That one is novel and mine.
Any gateway or agent product that ingests image or file URLs server-side is suspect until proven otherwise, and "we validate the URL" is not proof, because redirects, DNS rebinding and tier assumptions all sit outside a single validation call.
The reported set
These are confirmed findings, all in coordinated disclosure as of today. Impact class and record only; the writeups are staged.
Dify: agent-sandbox file read
A path-handling gap in the agent sandbox file API lets any workspace member who can preview an agent read arbitrary files on the agent runtime host: environment files, other workspaces' files, directory listings. Lab-confirmed end-to-end on v1.17.1 with CVSS 3.1 of 7.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N). Reported via GitHub Security Advisories on 2026-09-24, triaged Moderate. [CVE ID pending]
Dify: development defaults in the production compose template
The agent stack ships with development default credentials active in the template that the docs tell everyone to copy: an empty-token shell-exec daemon (network-position RCE in the sandbox tier), a hardcoded control-plane bearer (full agent control plane from the default Docker network, including run event streams, which I confirmed disclose conversation content), and a hardcoded JWE root secret that lets a network attacker forge execution identities for any tenant (cross-tenant file operations, confirmed). One theme, three faces: development defaults shipped active in the production template. Reported 2026-09-24 as one advisory, triaged Critical. [CVE ID pending]
Dify: a role-check gap the product's own history had already taught
While re-verifying Dify's published advisory history against current code (more on that method below), I found app-scoped console endpoints missing the role checks their sibling routes have. Same class and severity the vendor itself rated Medium in a 2025 CVE family. Report packaged, filing in progress.
Langflow: a lockdown policy that only covers half the surface
Langflow ships a lockdown knob for code execution aimed at exactly this: keep custom code away from non-admins. I found the policy enforced on custom component source, but the platform's built-in code-execution components still run for ordinary editors under that configuration, with a user-settable import field feeding them. Under the "admin-only code execution" configuration, a non-superuser editor still gets code execution. Lab-confirmed. Reported through the vendor's HackerOne program on 2026-09-29 (report 4069593). [CVE ID pending]
RAGFlow: two response-reflecting SSRFs
RAGFlow validates user URLs on most surfaces. The crawler validates once and does not
re-validate redirect hops or re-pin DNS, so a redirect hop walks past the guard; I
confirmed internal-only content (including the platform's own internal health JSON)
coming back in the response. The dedupe verdict was novel: an April 2026 fix addressed
the direct fetch but not redirects, and the maintainers demonstrably treat this class as
worth fixing elsewhere in the product. Second finding: the LLM provider base_url has
no guard at all and its fetched content is reflected straight back to the user, on
every authenticated tier. Lab-confirmed end-to-end on v0.27.2 with the global host
guard enabled, which is what makes it interesting: the product treats user URLs as
untrusted everywhere except this spot. Both filed through the vendor's private GitHub
security reporting. [CVE ID pending] x2
The lab right now
Two more lines of work are in progress and not yet reported, so no names and no detail yet: a tier-contradiction SSRF in a popular self-hosted AI assistant (the product's own scope statement assumes URL submission needs admin; the code disagrees), and one more gateway guard bypass. Code-verified where stated, lab steps still open. When they are reported and the clocks start, they join the table below.
The method, for practitioners
The highest-yield technique in this whole campaign was not exotic: re-apply the advisory history against current code. Take every published advisory for the target, find the fix commit, then verify the fix's coverage on today's code. Two of the findings above were born from fix-coverage gaps, and the exercise produced clean verdicts too: for one product I re-verified nine historical CVE lineages against the current release and found every one properly fixed (that deserves credit; the fixes were real).
The rest of the house method, briefly: dedupe before you file (advisories, issues, PRs, git history, and cite the closest prior art in your report), PoC in a lab before anything is called confirmed, keep the false-positive cross-check (is this our config or the shipped one? stock images, never rebuilt), and score severity with the vector string, not just a badge. And the disclosure record travels with everything.
Disclosure record
| Finding | Found | Reported | Channel | Status |
|---|---|---|---|---|
| one-api image_url SSRF | 2026-09-23 | not filed | duplicate of public issue #2387 | public n-day |
| Dify sandbox file read | 2026-09-23 | 2026-09-24 | GHSA-v36x-2r96-26j4 | triaged, in window |
| Dify dev-defaults family | 2026-09-24 | 2026-09-24 | GHSA-fm5x-9p5r-jqwr | triaged Critical, in window |
| Dify role-check gap | 2026-09-24 | packaging | GHSA | report in progress |
| Langflow lockdown bypass | 2026-09-24 | 2026-09-29 | HackerOne 4069593 (IBM) | in window |
| RAGFlow crawler redirect SSRF | 2026-09-24 | 2026-09-24+ | GHSA (private) | in window |
| RAGFlow provider base_url SSRF | 2026-09-24 | 2026-09-24+ | GHSA (private) | in window |
| new-api DNS-rebinding bypass | 2026-09-23 | unreported | - | lab record only |
Default window is 90 days. Full technical writeups will replace the staged sections as each fix ships.
What I want defenders to take from this
- Treat every user-supplied URL as an egress decision. Validation without redirect handling and DNS pinning is decoration.
- Audit what your compose templates actually ship. Development defaults that are convenient for the vendor's CI are credentials for your attackers.
- Permission checks belong to every route family, including the read-only-looking ones. If sibling routes are guarded and these are not, that gap is the finding.
- If you run one of these products: patch when the advisories land. They are coming, and this page will carry the full detail on the day each one goes public.