nextcloud / nextcloud/server

[Bug]: User can overwrite profile visibility settings via API

Open
#59,225 1 comment 0 reactions 1 assignee View on GitHub

@miaulalala is already working on this.

Since May 13, 2026.

0. Needs triage 33-feedback bug feature: profile feature: users and groups
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description
PUT /ocs/v2.php/cloud/users/<user_id>
Content-Type: application/json

{
  "key": "websiteScope",
  "value": "v2-published"
}

The API request allows a user to set visibility values that may not be supported on the frontend.

Steps to reproduce
  1. Log in to a Nextcloud instance as a regular user.
  2. Navigate to: Settings → Personal Info → Profile visibility
  3. Observe that the "Published" visibility option is disabled (greyed out) for certain fields (e.g., website).
  4. Intercept the request when modifying a profile field using a proxy tool (e.g., Burp Suite).
  5. Modify the request
Expected behavior

The API is in sync with the frontend UI

Nextcloud Server version

33

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

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

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.