Skip to content

[SECURITY] VERCEL_DEPLOY_HOOK secret exposed in shell run: block (deploy-site.yml) #23631

@moken627-hub

Description

@moken627-hub

Security Finding — /cso Audit 2026-05-11

Severity: MEDIUM | Confidence: 8/10 | Status: VERIFIED
File: .github/workflows/deploy-site.yml ~line 29

What

VERCEL_DEPLOY_HOOK is expanded directly in a shell run: block via ${{ secrets.VERCEL_DEPLOY_HOOK }}.

Impact

If debug logging is enabled, the deploy hook URL (containing a token) could leak to workflow logs. Leaked token = unauthorized deployments.

Fix

Move to env: block:

- name: Deploy
  env:
    VERCEL_DEPLOY_HOOK: ${{ secrets.VERCEL_DEPLOY_HOOK }}
  run: curl -X POST "$VERCEL_DEPLOY_HOOK"

Immediate Actions

  1. Rotate the Vercel deploy hook
  2. Review deploy logs for unauthorized deployments

Found by /cso automated security audit

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existsarea/configConfig system, migrations, profilestype/securitySecurity vulnerability or hardening

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions