Impact
A resource‑scoped API token that was permitted to read scripts could, by using the endpoint /api/w/{workspace}/scripts/list_search, obtain the source code of scripts located outside the token’s authorized path. The route‑level middleware verified only the token’s domain and action, but not the specific resource or path segment. Consequently, a token such as scripts:read:f/allowed/* could retrieve the contents of unrelated scripts within the same workspace. The flaw exposes internal automation logic, integration details, business logic, configuration information, and potentially hard‑coded secrets to anyone with a valid, non‑administrative token.
Affected Systems
The vulnerability affects Windmill platform versions prior to 1.715.0 released by windmill‑labs. Any installation of windmill-labs:windmill that has not applied the 1.715.0 update is subject to attack.
Risk and Exploitability
The flaw has a CVSS score of 5.1, indicating moderate severity. EPSS information is not available, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires possession of a valid, workspace‑scoped API token that includes a scripts:read action but does not need administrator privileges. An attacker can collect multiple script files through repeated GET requests, potentially exposing sensitive source code and secrets. While the attack vector is API‑based and does not involve local privilege escalation, the impact is the disclosure of confidential automation logic and configuration. The risk is moderate, and timely patching is strongly advised.
OpenCVE Enrichment
Github GHSA