nconf-toml@0.0.2 vulnerabilities

TOML format plugin for nconf.

Direct Vulnerabilities

Known vulnerabilities in the nconf-toml 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
  • H
Prototype Pollution

nconf-toml is a TOML format plugin for nconf.

Affected versions of this package are vulnerable to Prototype Pollution. It accepts values passed to .toml properties without sufficient validations.

PoC

var nt = require("nconf-toml")
var fs = require('fs')
var obj = {};

console.log("before: " + {}.polluted);
var _ = nt.parse(fs.readFileSync('./payload.toml', 'utf-8'));
console.log("after: " + {}.polluted);

How to fix Prototype Pollution?

There is no fixed version for nconf-toml.

*