GHSA-2ppx-66jv-wpw5: Windmill: Resource-scoped API tokens can read script contents outside their allowed path via scripts/list_search
Windmill API versions up to 1.714.1 have a vulnerability where resource-scoped API tokens intended to restrict script reading to specific path prefixes can bypass these restrictions via the GET /api/w/{workspace}/scripts/list_search endpoint. The endpoint returns script paths and contents without filtering based on the token's resource scope, allowing access to scripts outside the allowed path. This can expose sensitive script contents such as internal logic or secrets to token holders without admin privileges.
AI Analysis
Technical Summary
The Windmill API supports scoped API tokens with domain, action, and optional resource/path restrictions. However, the GET /api/w/{workspace}/scripts/list_search endpoint enforces only domain and action scopes at the route level, not the resource/path segment. Consequently, a token scoped to read scripts under a specific path prefix (e.g., scripts:read:f/allowed/*) can retrieve script contents from other paths within the workspace. The endpoint executes a query returning all non-archived scripts in the workspace without per-row filtering by token scope, exposing script source code beyond the token's intended scope. This is a variant of a previously addressed scoped-token authorization issue but remains unpatched for this endpoint. The vulnerability requires possession of a scoped API token but no admin privileges.
Potential Impact
An attacker or integration with a scoped API token limited to certain script paths can read script contents from unrelated paths in the same workspace. This may disclose internal automation logic, integration details, business logic, inline configuration, or accidentally hardcoded secrets or credentials. The exposure is limited to the workspace accessible by the token and does not require elevated privileges beyond token possession.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The suggested fix is to enforce resource/path scope filtering in the scripts/list_search handler, either by adding explicit authorization checks or filtering returned scripts by the token's resource scope. Until a patch is available, restrict token issuance carefully and monitor for updates from the vendor. No official fix or patch links are currently provided.
GHSA-2ppx-66jv-wpw5: Windmill: Resource-scoped API tokens can read script contents outside their allowed path via scripts/list_search
Description
Windmill API versions up to 1.714.1 have a vulnerability where resource-scoped API tokens intended to restrict script reading to specific path prefixes can bypass these restrictions via the GET /api/w/{workspace}/scripts/list_search endpoint. The endpoint returns script paths and contents without filtering based on the token's resource scope, allowing access to scripts outside the allowed path. This can expose sensitive script contents such as internal logic or secrets to token holders without admin privileges.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Windmill API supports scoped API tokens with domain, action, and optional resource/path restrictions. However, the GET /api/w/{workspace}/scripts/list_search endpoint enforces only domain and action scopes at the route level, not the resource/path segment. Consequently, a token scoped to read scripts under a specific path prefix (e.g., scripts:read:f/allowed/*) can retrieve script contents from other paths within the workspace. The endpoint executes a query returning all non-archived scripts in the workspace without per-row filtering by token scope, exposing script source code beyond the token's intended scope. This is a variant of a previously addressed scoped-token authorization issue but remains unpatched for this endpoint. The vulnerability requires possession of a scoped API token but no admin privileges.
Potential Impact
An attacker or integration with a scoped API token limited to certain script paths can read script contents from unrelated paths in the same workspace. This may disclose internal automation logic, integration details, business logic, inline configuration, or accidentally hardcoded secrets or credentials. The exposure is limited to the workspace accessible by the token and does not require elevated privileges beyond token possession.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The suggested fix is to enforce resource/path scope filtering in the scripts/list_search handler, either by adding explicit authorization checks or filtering returned scripts by the token's resource scope. Until a patch is available, restrict token issuance carefully and monitor for updates from the vendor. No official fix or patch links are currently provided.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-2ppx-66jv-wpw5
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-54136"]
- Ecosystems
- ["crates.io"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a520eb668715ace438f52da
Added to database: 07/11/2026, 09:36:54 UTC
Last enriched: 07/11/2026, 09:50:18 UTC
Last updated: 07/11/2026, 09:50:18 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.