CVE-2026-53901: Premature Unset Mass Assignment

Sanitizing an input array by unsetting restricted fields (like 'id') before applying an input normalization or transformation routine is vulnerable if the transformation step can reconstruct or hoist the restricted field back into the output array. Move the sanitization to occur strictly after the transformation, on the fully normalized data.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-53901-premature-unset-mass-assignment --engine opengrep

Description

Sanitizing an input array by unsetting restricted fields (like 'id') before applying an input normalization or transformation routine is vulnerable if the transformation step can reconstruct or hoist the restricted field back into the output array. Move the sanitization to occur strictly after the transformation, on the fully normalized data.