# CVE-2026-54136: Windmill: Resource-scoped API tokens can read script contents outside their allowed path via scripts/list_search

> Attackers with scoped API tokens can read unauthorized script contents and secrets due to missing path validation in the search endpoint.

- **Severity:** Medium 5.1 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 20 Aug 2026
- **Updated:** 21 Aug 2026
- **Also known as:** GHSA-2ppx-66jv-wpw5

## What is CVE-2026-54136?

CVE-2026-54136 is a medium-severity missing authorization vulnerability in windmill-labs windmill, published on 20 Aug 2026. An attacker needs administrator access to exploit it, with no action from the victim.

### Official description

Windmill is an open-source developer platform for internal code: APIs, background jobs, workflows and UIs. Prior to 1.715.0, a resource-scoped API token could read script contents outside its allowed path scope through GET /api/w/{workspace}/scripts/list_search. The route-level scope middleware validated the token domain and action but did not enforce the resource/path segment, and the list_search_scripts handler had no additional check_scopes call or per-row filtering before returning script path and content fields. A token such as scripts:read:f/allowed/* could therefore receive source code for unrelated paths in the same workspace, potentially disclosing internal automation logic, integration details, business logic, inline configuration, or hardcoded secrets and credentials. Exploitation required possession of a valid scoped API token for the workspace but did not require administrator privileges. This issue is fixed in version 1.715.0.

Weakness: CWE-863 (Incorrect Authorization)

## Which versions are affected by CVE-2026-54136?

2 open source packages ship an affected version, including windmill-api.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `windmill-api` | crates.io | All versions | 1.715.0 |
| `windmill-api` | crates.io | All versions | 1.715.0 |

## How do I fix CVE-2026-54136?

Upgrade windmill-api to 1.715.0 or later.

## Is CVE-2026-54136 being exploited?

There is no known exploitation of CVE-2026-54136 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-54136 and fix it if it is affected.

What it is: CVE-2026-54136 is a medium-severity missing authorization vulnerability in windmill-labs windmill, published on 20 Aug 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-54136 in the wild and no public exploit code.

Affected packages and fixed versions:
- windmill-api (crates.io): affected all versions; fixed in 1.715.0
- windmill-api (crates.io): affected all versions; fixed in 1.715.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-54136/ (Markdown: https://insights.sbomify.com/CVE-2026-54136/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-54136
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-54136
- OSV: https://osv.dev/vulnerability/CVE-2026-54136

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-54136/
Summaries are generated and may contain mistakes; the official description above is the record.
