CVE-2026-44643: Js Unsafe Method Style Hasownproperty

Method-style `$OBJ.hasOwnProperty($KEY)` is unsafe: if `$OBJ` inherits from `Object.prototype` or its `hasOwnProperty` property has been shadowed (prototype pollution or attacker-controlled keys like `__proto__`, `constructor`), the check returns the wrong value and lets prototype properties be treated as real own keys. This is the root cause of CVE-2026-446

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-44643-js-unsafe-method-style-hasownproperty --engine opengrep

Description

Method-style `$OBJ.hasOwnProperty($KEY)` is unsafe: if `$OBJ` inherits from `Object.prototype` or its `hasOwnProperty` property has been shadowed (prototype pollution or attacker-controlled keys like `__proto__`, `constructor`), the check returns the wrong value and lets prototype properties be treated as real own keys. This is the root cause of CVE-2026-446