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

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-02)
- Published: 2026-07-10T19:28:06.000Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-2ppx-66jv-wpw5
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- windmill-labs windmill: < 1.715.0
- windmill-api (crates.io): before 1.715.0

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/windmill-labs/windmill/security/advisories/GHSA-2ppx-66jv-wpw5> (web)
- <https://github.com/windmill-labs/windmill/pull/9426>
- <https://github.com/windmill-labs/windmill/commit/7edf3f02122e20fde1e95e0252e7bda641075326>
- <https://github.com/windmill-labs/windmill/releases/tag/v1.715.0>
- <https://github.com/windmill-labs/windmill> (package)

## Sources

- CVE List: [CVE-2026-54136](https://www.cve.org/CVERecord?id=CVE-2026-54136), CVE Terms of Use, modified 2026-08-21
- GitHub Advisory Database: [GHSA-2ppx-66jv-wpw5](https://github.com/advisories/GHSA-2ppx-66jv-wpw5), CC-BY-4.0, modified 2026-07-10
- NVD: [CVE-2026-54136](https://nvd.nist.gov/vuln/detail/CVE-2026-54136), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2026-54136 · Whole record: https://cve.day/CVE-2026-54136.json · Rebuilt by cve.day 2026-11-25T22:59:34.663Z
