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.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
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
Which versions are affected by CVE-2026-54136?
2 open source packages ship an affected version, including windmill-api.
| Package | 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.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-54136 being exploited?
There is no known exploitation of CVE-2026-54136 in the wild and no public exploit code.
Sources
Also known as GHSA-2ppx-66jv-wpw5.