VYPR
Critical severityNVD Advisory· Published Sep 1, 2020· Updated Sep 16, 2024

Prototype Pollution

CVE-2020-7724

Description

The tiny-conf package's set function is vulnerable to Prototype Pollution, enabling attackers to inject arbitrary properties into Object.prototype, potentially leading to denial of service or remote code execution.

AI Insight

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

The tiny-conf package's set function is vulnerable to Prototype Pollution, enabling attackers to inject arbitrary properties into Object.prototype, potentially leading to denial of service or remote code execution.

Vulnerability

Description

The tiny-conf package for Node.js is vulnerable to Prototype Pollution through its set function [2]. The function does not sanitize property paths, allowing an attacker to assign values to properties like __proto__, constructor, or prototype. This flaw affects all versions of the package [2].

Exploitation

An attacker can exploit this by providing a crafted object or path that targets the __proto__ property. When the set function iterates over the path, it can pollute Object.prototype with arbitrary properties. This attack requires no authentication and can be triggered via user-supplied input that is passed to the set function, such as configuration data [3].

Impact

Successful exploitation can lead to denial of service (DoS) by adding properties that cause exceptions, or, in more severe scenarios, to remote code execution (RCE) if the polluted properties alter application logic [3].

Mitigation

As of the CVE publication date, no patched version of tiny-conf is available. Users are advised to avoid using the library if possible, or to apply the commit from the project's repository [1] which attempts to fix the issue, but this has not been officially released as a new version. Additionally, input validation can be used to prevent malicious paths from reaching the set function.

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
tiny-confnpm
<= 1.1.0

Affected products

2

Patches

1
1f7be78bc689

Merge pull request #1 from d3m0n-r00t/master

https://github.com/tiny-conf/tiny-confMaxime TricoireOct 1, 2020via ghsa
1 file changed · +3 0
  • tiny-conf.js+3 0 modified
    @@ -44,6 +44,9 @@ Store.prototype = {
        * @return {boolean} true if set; false otherwise
        */
       set: function (key, val) {
    +    if (key.includes('__proto__') || key.includes('prototype') || key.includes('constructor')){
    +      return undefined;
    +    }
         if (val === undefined) {
           val = key;
           key = null;
    

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.