CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

low-risk

The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.

Abstraction: Variant

Common Consequences

Confidentiality Read Application Data
Availability DoS: Crash, Exit, or Restart

Detection Methods

Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Real-World Examples (10)

CVE CVSS EPSS KEV
CVE-2019-0230 9.8 93.7%
CVE-2022-24760 10.0 75.6%
CVE-2019-16328 7.5 73.0%
CVE-2011-10019 9.8 69.3%
CVE-2011-10019 9.8 69.3%
CVE-2024-21512 8.2 68.3%
CVE-2022-1802 8.8 67.9%
CVE-2022-1802 8.8 67.9%
CVE-2022-0432 6.1 57.1%
CVE-2022-0432 6.1 57.1%
4
/ 100
low-risk
Active Threat 4/50 · Minimal
Exploit Availability 0/50 · Minimal