CVE-2026-1774: Prototype Pollution Via Path Reduce

Walking a dot-notation path via Array.reduce and assigning each segment as an object property (`$RES[$PROP] = $RES[$PROP] || {}`) without filtering `__proto__`, `constructor`, or `prototype` enables prototype pollution (CWE-1321). When the path is attacker-controllable (e.g., rule condition keys, JSON config, query parameters) a value such as `__proto__.x` w

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-1774-prototype-pollution-via-path-reduce --engine opengrep

Description

Walking a dot-notation path via Array.reduce and assigning each segment as an object property (`$RES[$PROP] = $RES[$PROP] || {}`) without filtering `__proto__`, `constructor`, or `prototype` enables prototype pollution (CWE-1321). When the path is attacker-controllable (e.g., rule condition keys, JSON config, query parameters) a value such as `__proto__.x` w