The flaw is in Immich's partner synchronization stream, where queries in sync.repository.ts filter assets by owner or partner relationship but do not apply a condition excluding visibility = Locked. In contrast, the authorization path in access.repository.ts allows only Timeline and Hidden, excluding Locked assets. This inconsistency causes the synchronization path to return records that the direct access path is intended to deny.
An authenticated partner with an active sharing relationship can request the PartnerAssetsV2 and PartnerAssetExifsV1 types through POST /api/sync/stream. Both the initial backfill queries and later upsert queries are affected, covering asset and EXIF synchronization. The returned data may contain JSON Lines events with asset metadata and EXIF values from Locked Folder assets. The implementation details of a fix in a specific release have not been established.