You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: performContactSync deliberately strips the organisatie field from a contact object before calling saveObject, then attempts to restore it on failure. This bypasses schema validation for what appears to be a circular-reference issue, but introduces a data-corruption window: any consumer (API request, event listener, another cron task) that reads the contact between the unset and the saveObject call sees a record with no organisatie value.
On high-load instances with overlapping cron runs this window grows, and contacts can be permanently saved without their organisation if the service is killed mid-way.
Suggested fix:
Fix the underlying schema or data normalization issue rather than stripping and restoring data at runtime. Do not mutate the entity in ways that temporarily violate its own schema invariants.
Severity: HIGH
Location:
lib/Service/OrganizationSyncService.phplines 407–468 (performContactSync), specifically lines 431–432Description:
performContactSyncdeliberately strips theorganisatiefield from a contact object before callingsaveObject, then attempts to restore it on failure. This bypasses schema validation for what appears to be a circular-reference issue, but introduces a data-corruption window: any consumer (API request, event listener, another cron task) that reads the contact between theunsetand thesaveObjectcall sees a record with noorganisatievalue.On high-load instances with overlapping cron runs this window grows, and contacts can be permanently saved without their organisation if the service is killed mid-way.
Suggested fix:
Fix the underlying schema or data normalization issue rather than stripping and restoring data at runtime. Do not mutate the entity in ways that temporarily violate its own schema invariants.
Source: deep team-reviewer pass 2026-05-27