VYPR
Moderate severityNVD Advisory· Published Feb 18, 2020· Updated Aug 4, 2024

CVE-2019-10794

CVE-2019-10794

Description

All versions of component-flatten are vulnerable to Prototype Pollution. The a function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

component-flatten is vulnerable to Prototype Pollution via a __proto__ payload, allowing an attacker to modify Object.prototype.

Vulnerability

Overview

The component-flatten package, used for flattening dependency trees in the component-resolver ecosystem, is vulnerable to Prototype Pollution across all versions. The flaw resides in a function that can be tricked into adding or modifying properties of Object.prototype by passing a __proto__ payload [1][2]. This type of vulnerability allows an attacker to pollute the base prototype of JavaScript objects.

Exploitation

To exploit this vulnerability, an attacker needs to supply a crafted object with a __proto__ property to the flatten function. No authentication or special privileges are required if untrusted input reaches the function. The attack surface is typical of Node.js applications that process user-controlled data through the affected library [1][2].

Impact

Successful prototype pollution can lead to severe consequences, including remote code execution, denial of service, or property injection, depending on the application's logic. In this case, the impact ranges from denial of service to potentially arbitrary code execution in the context of the application [1].

Mitigation

As of the publication date, no patch was available for this vulnerability. Users are advised to avoid using untrusted input with the component-flatten library or to migrate to alternative solutions that are not affected [1][2].

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
component-flattennpm
<= 1.0.1

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.