# Langflow code-validation endpoint (CVE-2025-3248): tested on six versions, and a check for your instance

By Vadim Nareyko, founder, Arviser. Published 2026-11-30 · Updated 2026-12-04 · Last reviewed 2026-11-30

## Facts

- Test: KB-T-0007 · AI applications
- Record published: 2025-04-07 · CVE-2025-3248 published: Langflow before 1.3.0, code injection in /api/v1/validate/code without authentication (https://nvd.nist.gov/vuln/detail/CVE-2025-3248)
- Fix: 2025-03-31 · Langflow 1.3.0, the fixed version of CVE-2025-3248, on PyPI (https://pypi.org/project/langflow/1.3.0/)
- Exploitation reported: 2025-05-05 · CVE-2025-3248 added to the CISA KEV catalog, ransomware use marked "Known" (https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json)
- Record published: 2026-01-23 · CVE-2026-0770 published: exec_globals in the validate endpoint (https://nvd.nist.gov/vuln/detail/CVE-2026-0770)
- Record published: 2026-07-17 · CVE-2026-9198 published: auto_login chained with /api/v1/validate/code (https://nvd.nist.gov/vuln/detail/CVE-2026-9198)
- Exploitation reported: 2026-07-21 · CVE-2026-0770 added to the CISA KEV catalog (https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json)
- Exploitation reported: 2026-08-04 · CVE-2026-9198 added to the CISA KEV catalog (https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json)
- Our test run: 2026-11-28 · Our lab run 4: six Langflow versions, four setups, 11 controls, 3 runs per cell
- CVE: [CVE-2025-3248](https://www.cve.org/CVERecord?id=CVE-2025-3248)
- CVE: [CVE-2026-0770](https://www.cve.org/CVERecord?id=CVE-2026-0770)
- CVE: [CVE-2026-9198](https://www.cve.org/CVERecord?id=CVE-2026-9198)
- GitHub advisory: [GHSA-rvqx-wpfh-mfx7](https://github.com/langflow-ai/langflow/security/advisories/GHSA-rvqx-wpfh-mfx7)
- GitHub advisory: [GHSA-g22f-v6f7-2hrh](https://github.com/advisories/GHSA-g22f-v6f7-2hrh)
- Records: [CVE-2025-3248](https://nvd.nist.gov/vuln/detail/CVE-2025-3248) ([GHSA-rvqx-wpfh-mfx7](https://github.com/langflow-ai/langflow/security/advisories/GHSA-rvqx-wpfh-mfx7)), fixed in 1.3.0. Later records on the same endpoint: [CVE-2026-0770](https://nvd.nist.gov/vuln/detail/CVE-2026-0770), [CVE-2026-9198](https://nvd.nist.gov/vuln/detail/CVE-2026-9198)
- Exploited: All three are in the [CISA KEV catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog) (catalog version 2026.11.27). CVE-2025-3248 since 2025-05-05, with ransomware use marked "Known"
- Tested by us: 2026-11-28, official images 1.2.0, 1.3.0, 1.5.0, 1.6.0, 1.7.3, 1.13.4; 26 cells, 78 runs, [lab run 4](https://github.com/nareyko/arviser-labs/blob/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code/results/2026-11-28/run-4/summary.md)
- Check: [`check-langflow-validate-code.sh <base-url>`](https://github.com/nareyko/arviser-labs/blob/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code/check-langflow-validate-code.sh), one POST without credentials and without code
- Checked: 2026-11-30 06:15 UTC: the three records, KEV catalog version 2026.11.27, newest release 1.13.4, the six image digests unchanged

## Short answer

Upgrading past 1.3.0 is not enough. In our lab, Langflow 1.3.0 and 1.5.0 as shipped let a request with no credentials through to `/api/v1/validate/code`, the endpoint CVE-2025-3248 says was fixed in 1.3.0. From 1.6.0 a direct request is refused, but while automatic login is on, the token from `/api/v1/auto_login` opens the endpoint, on 1.13.4 too. The setting that closed it on 1.3.0 to 1.13.4 was `LANGFLOW_AUTO_LOGIN=false` with a superuser password. Run our check: exit 1 means exposed.

## 1. What the records say

CVE-2025-3248: "Langflow versions prior to 1.3.0 are susceptible to code injection in the /api/v1/validate/code endpoint. A remote and unauthenticated attacker can send crafted HTTP requests to execute arbitrary code" ([NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-3248)). The fix, [commit faac4db](https://github.com/langflow-ai/langflow/commit/faac4db133de32fcb6d483fa9ff52f40ce42bdc0) ("auth current user on code validation", PR #6911), adds a current-user check to the endpoint.

Two later records name the same endpoint. CVE-2026-0770 (ZDI) describes code execution through the `exec_globals` parameter of the validate endpoint and says "Authentication is not required". Its GitHub record lists `langflow` 1.7.3 and earlier with no fixed version in the record as of 2026-11-30 ([GHSA-g22f-v6f7-2hrh](https://github.com/advisories/GHSA-g22f-v6f7-2hrh)); the KEV entry points to the v1.9.0 release, whose notes do not name the CVE. CVE-2026-9198 (IBM as CNA) says IBM Langflow OSS 1.0.0 through 1.10.0 lets an attacker chain `/api/v1/auto_login`, which "mints SUPERUSER tokens to any network caller", with `/api/v1/validate/code` on default deployments. [IBM's bulletin](https://www.ibm.com/support/pages/node/7278927) says to upgrade to 1.10.1.

## 2. What we tested

Official `langflowai/langflow` images by digest, one internal Docker network, no published ports, nothing privileged. Four setups:

- **Image default:** as shipped. Images before 1.10.2 set no `LANGFLOW_AUTO_LOGIN`, so this is also the pip default there, and automatic login is on.
- **`AUTO_LOGIN=true`** (1.13.4 only, where the image turns it off).
- **`AUTO_LOGIN=true` and `LANGFLOW_SKIP_AUTH_AUTO_LOGIN=true`** (1.7.3, 1.13.4).
- **Hardened:** `LANGFLOW_AUTO_LOGIN=false`, a superuser name and a password generated for each run.

**No code was sent.** Every request to the endpoint had the body `{}`. Langflow checks credentials first and the body second, so a 401 or 403 means it asked for credentials, and a 422 for the missing `code` field means the request got past the check and stopped at the body. The validator never ran. A lab-only step also asked `/api/v1/auto_login` for a token and sent the same `{}` with it, the chain CVE-2026-9198 names, and kept only status codes.

Each cell ran three times in fresh containers. We wrote the expected result of every cell before the first Langflow container started.

**Tested by us, 2026-11-28** ([summary](https://github.com/nareyko/arviser-labs/blob/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code/results/2026-11-28/run-4/summary.md), [raw files](https://github.com/nareyko/arviser-labs/tree/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code/results/2026-11-28/run-4/raw)):

| Version | Image default | `AUTO_LOGIN=true` | `AUTO_LOGIN` + `SKIP_AUTH` | Hardened |
| --- | --- | --- | --- | --- |
| 1.2.0 | **Exposed** | same as image default | not run | **Exposed** |
| 1.3.0 | **Exposed** | same as image default | not run | Not exposed |
| 1.5.0 | **Exposed** | same as image default | not run | Not exposed |
| 1.6.0 | Not exposed; token opens it | same as image default | not run | Not exposed |
| 1.7.3 | Not exposed; token opens it | same as image default | **Exposed** | Not exposed |
| 1.13.4 | Does not start | Not exposed; token opens it | **Exposed** | Not exposed |

"Token opens it": `/api/v1/auto_login` returned a token to a request with no credentials, and the same `{}` sent with that token got the 422, in 3 of 3 runs. In the hardened cells `auto_login` gave no token. "Does not start": the 1.13.4 image turns automatic login off and exits at startup without `LANGFLOW_SUPERUSER_PASSWORD`. All 26 cells, including 11 controls, matched the expectation in every run.

**From the record, not run by us:** what the validator does with code, the `exec_globals` path, and versions 1.4.x and 1.8.0 to 1.12.10.

## 3. What the lab showed beyond the records

**A worked example.** Langflow 1.3.0, official image, no settings. One POST to `/api/v1/validate/code` with the body `{}` and no credentials got 422, the error for a missing field at `"loc":["body","code"]`. The same request to 1.3.0 with automatic login off got 403 with one of Langflow's own refusal messages. The 1.3.0 check asks for a user, and with automatic login on Langflow supplies the superuser to anyone who asks.

The source at 1.3.0 shows it (`api_key_security` returns the superuser when `AUTO_LOGIN` is on), and Langflow's docs at 1.6.0 say "In Langflow versions earlier than 1.5, if `LANGFLOW_AUTO_LOGIN=True`, then Langflow automatically logs users in as a superuser without requiring authentication" ([docs at 1.6.0](https://github.com/langflow-ai/langflow/blob/1.6.0/docs/docs/Configuration/api-keys-and-authentication.mdx)). 1.5.0 behaves the same because `LANGFLOW_SKIP_AUTH_AUTO_LOGIN` defaults to true in its code. The same docs page says that from 1.5 most endpoints require an API key even with `AUTO_LOGIN` on; the 1.5.0 code default and our run say otherwise. So "fixed in 1.3.0" is true for an instance with automatic login off, and was not true for 1.3.0 or 1.5.0 at their defaults.

**Before 1.3.0, turning automatic login off did nothing for this endpoint.** 1.2.0 hardened was exposed: the endpoint had no login check at all ([validate.py at 1.2.0](https://github.com/langflow-ai/langflow/blob/1.2.0/src/backend/base/langflow/api/v1/validate.py)).

**From 1.6.0 the direct request is refused, and the token still works.** `LANGFLOW_SKIP_AUTH_AUTO_LOGIN` defaults to false from 1.6.0, so a request with no key gets 403. With automatic login on, `/api/v1/auto_login` still hands out a superuser token, and that token passed the check on 1.6.0, 1.7.3 and 1.13.4. IBM names 1.10.1 as the fix. Langflow's own advisory for auto_login calls 1.10.1 a partial fix, says 1.10.1 to 1.12.x still hand out a token at the default, and turned `AUTO_LOGIN` off by default in 1.13.0; deployments that set it to true "remain single-user/dev-mode by design" ([GHSA-fjgc-vj2f-77hm](https://github.com/langflow-ai/langflow/security/advisories/GHSA-fjgc-vj2f-77hm)). In our runs on 1.13.4 with `AUTO_LOGIN=true`, the token passed this endpoint's login check. In our view, any Langflow with automatic login on should be treated as open to whoever can reach it.

**The 1.6.0 docs and code disagree on one default.** The 1.6.0 variables table lists `LANGFLOW_SKIP_AUTH_AUTO_LOGIN` with default `True`; the 1.6.0 code sets `False`, and our 1.6.0 run refused the direct request.

## 4. Check your own instance

```sh
sh check-langflow-validate-code.sh https://langflow.internal.example
```

It needs `sh` and `curl` ([script](https://github.com/nareyko/arviser-labs/blob/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code/check-langflow-validate-code.sh)). It sends one POST to `/api/v1/validate/code` with the body `{}` and no credentials. The body carries no code. Run it only against an instance you own or are allowed to test.

| Exit | Verdict | What to do |
| ---: | --- | --- |
| 0 | NOT EXPOSED: Langflow refused for missing credentials | Also check `/api/v1/auto_login` ([digest of 27 November](/guides/ai-security-week-2026-11-27), Langflow item); a token from there opens this endpoint |
| 1 | EXPOSED: Langflow answered 422 for the missing `code` field | Fix now (section 5) |
| 2 | NOT TESTED: no answer, a redirect, 404, 405, 5xx, or an answer that is not Langflow's | Point it at the right base URL, or run it where it can reach Langflow |
| 3 | BLOCKED: a 401 or 403 that did not come from Langflow, or a 407 or 451 | A proxy or gateway refused this path. Run it again from inside |

Only exit 0 means "not exposed", and only with one of four refusal messages taken from Langflow's source for a missing or invalid key. In the lab it gave "not tested" for a hung port, a catch-all page, a 404 server, an unknown host, a redirect, a 405 and a 422 for another field, and "blocked" for two servers that refuse every request, 3 of 3 runs each. It gave "exposed" for a fake server that returns the 422 for `code`.

A token from `/api/v1/auto_login` opens this endpoint, so check that route as well: the Langflow item of our [weekly digest of 27 November](/guides/ai-security-week-2026-11-27) gives a one-request check and how to read its answer. Neither check sees API keys created earlier. Each sees only what is reachable from where you run it.

## 5. Fix

1. **Set `LANGFLOW_AUTO_LOGIN=false` with `LANGFLOW_SUPERUSER_PASSWORD`,** and make sure `LANGFLOW_SKIP_AUTH_AUTO_LOGIN` is not `true`. Read them where the service reads them: the container (`docker inspect`), `.env`, the compose file, Helm values. That setup gave "not exposed", with no token from auto_login, on 1.3.0 to 1.13.4. On an existing install, follow Langflow's [upgrade guide for auto-login installs](https://docs.langflow.org/api-keys-and-authentication#upgrade-from-auto-login) first, so the existing account keeps its flows.
2. **Upgrade** to the current release, 1.13.5 from 2026-12-01; IBM's minimum is 1.13.1. [IBM's bulletin of 20 November](https://www.ibm.com/support/pages/node/7297616) lists 1.0.0 through 1.13.0 as affected by 29 other Langflow CVEs, fixed in 1.13.1. On 1.2.0 and earlier no setting helps. Per the release notes and Langflow's docs, other changes on the way can stop things working, among them: a pip install of 1.11.x should follow the docs' [replacement procedure](https://docs.langflow.org/get-started-installation#upgrade-from-langflow-111), because an in-place upgrade "can leave incompatible provider packages installed"; local Chroma knowledge bases move to SQLite in 1.13.0; from 1.13.2, every webhook run needs the flow owner's API key (403 without it), and `LANGFLOW_WEBHOOK_AUTH_ENABLE=false` no longer opens webhooks; from 1.13.2, custom components need a superuser by default (`LANGFLOW_CUSTOM_COMPONENT_ADMIN_ONLY=false` restores the old behaviour and lets every user run Python on the server); project MCP and A2A endpoints with unset authentication, and with `LANGFLOW_AUTO_LOGIN=false` also those set to None, require the project owner's credentials (by default an API key) from 1.13.2, tightened in 1.13.4; and the Dotenv component no longer loads `.env` content from 1.13.4. The list is not complete; read the release notes for each version you skip. We ran none of these upgrades; our runs stop at 1.13.4.
3. **If the check said exposed and people you do not trust could reach the instance,** in our view treat the host as compromised: CISA lists all three records as exploited. Rotate the provider keys stored in Langflow, revoke API keys you did not create, and look for flows and users you did not add.

## 6. What we ran

| Item | Value |
| --- | --- |
| Lab | [langflow-validate-code](https://github.com/nareyko/arviser-labs/tree/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code), arviser-labs commit f0c467d |
| Images | `langflowai/langflow` 1.2.0 `sha256:307fb62f…6bac`, 1.3.0 `sha256:aae73a56…b596`, 1.5.0 `sha256:9f2c2d6f…74c3`, 1.6.0 `sha256:696e7afc…8a17`, 1.7.3 `sha256:a262fa77…3cc2`, 1.13.4 `sha256:266a12cd…bfd8f` (amd64); curl 8.23.0; nginx 1.30.8 for the controls |
| Installed version | Read inside each container: matched the tag |
| Runs | 3 per cell, fresh containers each time; 26 cells, 78 runs, all matched |
| Expected results | Written before the runs and hashed: [v1](https://github.com/nareyko/arviser-labs/blob/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code/expected/EXPECTED.md) for runs 1 and 2, [v2](https://github.com/nareyko/arviser-labs/blob/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code/expected/EXPECTED-v2.md) for runs 3 and 4 (no verdict changed) |
| Record run | Run 4, check version 2. Runs 1 to 3 are kept: run 1 was stopped from outside during a pull, run 2 gave the same verdicts with check version 1, run 3 lost a container to another lab that used the same container name |
| Runner, date | Claude Opus 5.5, 2026-11-28; checked by a separate AI agent the same day |
| Not run | pip install, compose with PostgreSQL, Helm, the desktop app |
| Expiry | Stale when Langflow releases after 1.13.4. 1.13.5 came out on 2026-12-01 and has not been run. Re-run on it |

## Related pages

- [LiteLLM /public/mcp_hub (GHSA-28j3-9x3h-556f): tested on six versions, and a check for your instance](/library/tests/litellm-public-mcp-hub-ghsa-28j3)
- [Ollama: who can reach the API](/library/tests/ollama-api-exposure)
- [Langflow auto_login (CVE-2026-9103): tested on four versions and four setups, and a check for your instance](/library/tests/langflow-auto-login-cve-2026-9103)

## Sources

- CVE-2025-3248, NVD, published 2025-04-07, VulnCheck as CNA: https://nvd.nist.gov/vuln/detail/CVE-2025-3248 (accessed 2026-11-30)
- GHSA-rvqx-wpfh-mfx7, Langflow repository advisory: https://github.com/langflow-ai/langflow/security/advisories/GHSA-rvqx-wpfh-mfx7 (accessed 2026-11-30)
- CVE-2026-0770, NVD, ZDI as CNA: https://nvd.nist.gov/vuln/detail/CVE-2026-0770 (accessed 2026-11-30)
- GHSA-g22f-v6f7-2hrh, GitHub advisory for CVE-2026-0770: https://github.com/advisories/GHSA-g22f-v6f7-2hrh (accessed 2026-11-30)
- CVE-2026-9198, NVD, IBM as CNA: https://nvd.nist.gov/vuln/detail/CVE-2026-9198 (accessed 2026-11-30)
- IBM security bulletin 7278927 (CVE-2026-9198): https://www.ibm.com/support/pages/node/7278927 (accessed 2026-11-30)
- CISA, Known Exploited Vulnerabilities catalog (JSON feed, catalog version 2026.11.27): https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json (accessed 2026-11-30)
- GHSA-fjgc-vj2f-77hm, Langflow repository advisory for auto_login: https://github.com/langflow-ai/langflow/security/advisories/GHSA-fjgc-vj2f-77hm (accessed 2026-11-28)
- Langflow fix commit faac4db, auth current user on code validation (PR 6911): https://github.com/langflow-ai/langflow/commit/faac4db133de32fcb6d483fa9ff52f40ce42bdc0 (accessed 2026-11-28)
- Langflow source, api/v1/validate.py at 1.2.0: https://github.com/langflow-ai/langflow/blob/1.2.0/src/backend/base/langflow/api/v1/validate.py (accessed 2026-11-28)
- Langflow repository (validate.py, services/auth and the auth settings at tags 1.2.0, 1.3.0, 1.5.0, 1.6.0, v1.7.3, v1.13.4): https://github.com/langflow-ai/langflow (accessed 2026-11-28)
- Langflow docs at 1.6.0, API keys and authentication: https://github.com/langflow-ai/langflow/blob/1.6.0/docs/docs/Configuration/api-keys-and-authentication.mdx (accessed 2026-11-30)
- Langflow docs at 1.6.0, environment variables: https://github.com/langflow-ai/langflow/blob/1.6.0/docs/docs/Configuration/environment-variables.mdx (accessed 2026-11-30)
- Langflow docs, upgrade an existing auto-login installation: https://docs.langflow.org/api-keys-and-authentication#upgrade-from-auto-login (accessed 2026-11-30)
- Langflow releases on GitHub: https://github.com/langflow-ai/langflow/releases (accessed 2026-11-30)
- PyPI, langflow release history: https://pypi.org/project/langflow/#history (accessed 2026-11-30)
- IBM security bulletin 7297616, Langflow OSS 1.0.0 to 1.13.0, 29 CVEs, fixed in 1.13.1, 2026-11-20: https://www.ibm.com/support/pages/node/7297616 (accessed 2026-12-04)
- Langflow docs, Upgrade from Langflow 1.11.x: https://docs.langflow.org/get-started-installation#upgrade-from-langflow-111 (accessed 2026-12-04)
- Our lab, arviser-labs at commit f0c467d, tested-threats/langflow-validate-code: https://github.com/nareyko/arviser-labs/tree/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code (accessed 2026-11-30)
- Our lab, configs of the official Langflow images, read 2026-11-28: https://github.com/nareyko/arviser-labs/blob/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code/results/2026-11-28/registry-config/image-env.txt (accessed 2026-11-30)
- Our lab, run 4 of 2026-11-28: summary, raw files and hashes: https://github.com/nareyko/arviser-labs/tree/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code/results/2026-11-28/run-4 (accessed 2026-11-30)

## Corrections

- 2026-12-04: Step 2 of the fix named 1.13.4 as the current release without a minimum. IBM bulletin 7297616 of 20 November lists 1.0.0 through 1.13.0 as affected by 29 other Langflow CVEs, fixed in 1.13.1; the target is now the current 1.13.5, with 1.13.1 as IBM's minimum, plus the changes in 1.13.x that can break an upgrade. Our lab runs still stop at 1.13.4.

How this page was made: Claude Opus 5.5, an AI model, ran the lab, read the records and the Langflow source, and wrote this page. A separate AI agent checked the claims against the sources and the lab record, and the page was corrected after it. Vadim Nareyko approved the tested-threats programme, which this page follows, on 27 November 2026. Vadim Nareyko reviewed this page and approved it for publication on 30 November 2026.

Text and data on this page: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Code in [our lab](https://github.com/nareyko/arviser-labs/tree/f0c467dc23004b2addc29ccdd73757a475e0c6d4/tested-threats/langflow-validate-code): [MIT](https://opensource.org/license/mit). Quoted third-party material keeps its own terms.
