All rules →
Rules / JavaScript / TypeScript
SHIELD-JS-007

Prototype pollution via merge/assign

highJavaScript / TypeScriptCWE-1321CVSS 7.5

What it detects

Merging user-controlled objects into a target without key filtering can pollute Object.prototype.

How to fix

Sanitize object keys before merging. Use Object.create(null) for dictionaries.

Scan your repo freeFull documentation
Back to all rules
SHIELD-JS-007: Prototype pollution via merge/assign — Zennoxa Shield