Spring Data REST's JSON Patch support exposes @Id and @Version properties by default, allowing attackers to mutate entity identity and optimistic locking fields through standard REST operations. This is not a subtle edge case—the blast radius of replacing an @Id value orphans every foreign key relationship pointing to that entity, corrupts event sourcing streams keyed on identity, and breaks materialized views that anchor on the original identifier. One patch operation doesn't corrupt a row; it poisons the entire subgraph that entity anchors.

The deeper problem is that @Id and @Version are framework-managed concepts. Developers apply these annotations to express core domain invariants—entity identity and optimistic locking—not to flag sensitive data. Spring Data REST uses annotations to declare its own managed concepts, then leaves those concepts mutable by default. This broken promise between annotation semantics and framework behavior creates a pit-of-failure: developers reasonably assume the framework protects its own primitives.

This vulnerability has genealogy. The exact failure mode—frameworks treating model properties as uniformly exposable, including identity fields—surfaced in Rails mass assignment vulnerabilities circa 2012. The industry paid for that lesson and developed the remediation pattern: entity identity and versioning metadata must be treated as implicitly read-only at the framework layer, making protection opt-out rather than opt-in. Spring Data REST failed to import this lesson.

The multi-version spread across 3.x through 5.x indicates repeated non-correction rather than a frozen artifact—each release that shipped unchanged was an active decision to preserve the behavior. Now remediation requires not just patching but auditing downstream systems that may have built workflows around ID mutation, creating its own dependency risk.

Immediate actions: first, verify your Spring Data REST version and apply the available patch. Second, audit all entity definitions—any @Id or @Version field must be explicitly excluded from JSON Patch exposure via repository exposed delegates or custom JsonPatchArgumentResolver configurations. Third, review any event-driven or materialized-view architectures: a successful ID mutation corrupts the event log and diverges read models in ways that may not be recoverable from the entity alone. The CVSS 7.1 understates the real risk in mature deployments with complex entity graphs.