Skip to content

[Bug]: package.json file is accessible via HTTP #57221

@P4sca1

Description

@P4sca1

⚠️ This issue respects the following points: ⚠️

Bug description

The package.json file is accessible publicly.

Steps to reproduce

GET https://<nextcloud-url>/package.json

Expected behavior

The file should not be publicly available, as it is not needed for website functionality and exposes potentially valuable metadata.

Nextcloud Server version

32

Operating system

None

PHP engine version

Other

Web server

Nginx

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

I am running Nextcloud on Kubernetes using the nextcloud/helm chart with fpm and nginx.
Nextcloud Image: docker.io/library/nextcloud:32.0.3-fpm
Helm Chart version: nextcloud-8.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions