Check ID: project_directory_listing_disabled
Provider: Vercel
Service: project
Severity: MEDIUM
Categories: internet-exposed
Resource type: NotDefined

What this check verifies

Vercel projects are assessed for directory listing configuration. When enabled, this feature allows visitors to browse the file structure of a deployment when no index file is present in a directory, potentially exposing source files, configuration files, and other assets that should not be publicly accessible.

Risk

Enabled directory listing allows attackers to enumerate the file structure of the deployment, potentially discovering backup files, configuration files, source maps, or other sensitive assets. This information disclosure can be leveraged to identify attack vectors or access files that were not intended to be public.

Recommendation

Disable directory listing to prevent visitors from browsing the file structure of your deployments. Ensure that all directories either contain an index file or return a 404 response when accessed directly.

Remediation

Dashboard steps
  1. Sign in to the Vercel dashboard
  2. Navigate to the project Settings > General
  3. Locate the ‘Directory Listing’ option
  4. Ensure it is disabled
  5. Click Save

References

Where this check fires

This check runs on every scheduled scan against your Vercel account. Findings appear at Cloud Security → Findings filterable by Check ID = project_directory_listing_disabled. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to Vercel checks