CVE-2026-40899: Lombok Data Class List Field Missing Jsonignore

A List<String> field initialized via Arrays.asList() in a Lombok @Data-annotated class is missing @JsonIgnore. The @Data annotation auto-generates a public setter for this field. During Jackson JSON deserialization, an attacker can include this field in a crafted JSON payload to overwrite the server-side value, potentially bypassing security validation (e.g.

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Java
greprules fetch cve-2026-40899-lombok-data-class-list-field-missing-jsonignore --engine opengrep

Description

A List<String> field initialized via Arrays.asList() in a Lombok @Data-annotated class is missing @JsonIgnore. The @Data annotation auto-generates a public setter for this field. During Jackson JSON deserialization, an attacker can include this field in a crafted JSON payload to overwrite the server-side value, potentially bypassing security validation (e.g.