A user/API key might be denied variables:view (and the /api/v1/variables route enforces it), but they can still:
Inside the custom JS context, $vars contains a flat map of:
This can expose secrets such as database passwords, JWT secrets, SMTP passwords, cloud keys, etc., depending on what the workspace Variables are configured to map.
{
"cwe_ids": [
"CWE-863"
],
"github_reviewed": true,
"github_reviewed_at": "2026-08-04T17:43:36Z",
"nvd_published_at": null,
"severity": "HIGH"
}