Skip to content

🐛 Bug Report: Static directory listing is publicly accessible at /static/ #8981

@nayanika98

Description

@nayanika98

📜 Description

When deploying Novu, the /static/ endpoint exposes directory listings.
This allows anyone to see internal folder structures and files, which is a security risk.

👟 Reproduction steps

  1. Deploy Novu (self-hosted).
  2. Open the browser and navigate to: https:///static/
  3. Observe that the directory contents are listed.

👍 Expected behavior

Navigating to /static/ should not expose directory listings.
Instead, it should either:

  • Return 403 Forbidden, or
  • Show a blank index page, serving only required static assets.

👎 Actual Behavior with Screenshots

Visiting /static/ displays the directory listing of files/folders.
This exposes internal structure and could potentially leak sensitive files.

Image

Novu version

2.0.0

npm version

No response

node version

No response

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions