Skip to content

Linked issues list does not enforce project visibility permissions for guest users #10113

Open

Description

@shafiktanbir

When viewing linked issues on an issue detail page, guest users can see linked issue relations even if the linked issue belongs to a project the guest does not have permission to view. The endpoint lists related issue objects without filtering by the viewer's project access rights.

Happy to submit a PR to ensure linked issues verify project viewing permissions before returning results.

Activity

  1. ghazy2001 commented on Oct 30, 2026

    @ghazy2001
    Contributor

    Hi @shafiktanbir! 👋

    I've opened PR #10155 addressing this:

    • Exported visible_issue_q in plane.app.permissions as the centralized issue visibility filter across projects.
    • In IssueRelationViewSet.list (apps/api/plane/app/views/issue/relation.py), filtered the relations queryset with .filter(visible_issue_q(request.user)). Any related issue the caller does not have permission to view is safely excluded from all relation categories (blocking, blocked_by, duplicate, relates_to, start_after, start_before, finish_after, finish_before).
    • Added contract test coverage in test_guest_issue_subresource_scope_app.py and test_issue_subresource_scope_app.py covering restricted guests, unjoined sibling projects, unrestricted guests, and project members.

    PR: #10155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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