GHSA-6cj2-92m5-7mvp: Think config Improperly Controlled Modification Of Object Vulnerability

HIGH
CVSS 7.5
CWE-1321
Published
Advisory Summary

GHSA-6cj2-92m5-7mvp is a HIGH (CVSS 7.5) improperly controlled modification of object vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Think config libraries in the npm ecosystem. The issue involves improperly controlled modification of object prototype attributes. Remediation is available by upgrading affected packages to version 1.1.3.

GHSA-6cj2-92m5-7mvp at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-6cj2-92m5-7mvp
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Think config
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-6cj2-92m5-7mvp

To remediate this vulnerability, upgrade all affected Think config dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

think-config fixed: 1.1.3
npm install think-config@1.1.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls think-config

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-6cj2-92m5-7mvp, inspect your project dependencies using npm:

npm ls think-config

Analyze the terminal output to locate any version of Think config in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.3), your application is affected.

Note: The npm ls think-config command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where 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. In Think config, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The software 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. ### Patches `think-config@1.1.3` patched it, anyone used `think-config` should upgrade to `>=1.1.3` version. ### References https://cwe.mitre.org/data/definitions/1321.html ### For more information If you have any questions or comments about this advisory: * Open an issue in [thinkjs/thinkjs](https://github.com/thinkjs/thinkjs) * Email us at [i@imnerd.org](mailto:i@imnerd.org)

GHSA-6cj2-92m5-7mvp Affected Think config Versions

1 component(s)
Fixed Versions:
1.1.3
Product / Package Ecosystem Affected Versions Fixed Version
think-config
npm
< 1.1.3
1.1.3

References

Frequently Asked Questions

What is GHSA-6cj2-92m5-7mvp?
GHSA-6cj2-92m5-7mvp is a security vulnerability in Think config involving Improperly Controlled Modification of Object Prototype Attributes under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Think config versions are affected?
Affected versions include releases prior to 1.1.3 across affected packages: think-config.
What version fixes GHSA-6cj2-92m5-7mvp?
Upgrading to 1.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is think-config affected?
Yes, think-config is affected in releases prior to 1.1.3. Upgrade your dependency to 1.1.3 or later.
What is the CVSS score of GHSA-6cj2-92m5-7mvp?
GHSA-6cj2-92m5-7mvp has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with GHSA-6cj2-92m5-7mvp?
GHSA-6cj2-92m5-7mvp is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (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.).
How can I check npm dependencies for GHSA-6cj2-92m5-7mvp?
Run the dependency tree command: 'npm ls think-config'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6cj2-92m5-7mvp",
  "modified" : "2021-10-08T21:20:09Z",
  "published" : "2021-08-03T16:48:46Z",
  "aliases" : [ ],
  "summary" : "Improperly Controlled Modification of Object Prototype Attributes",
  "details" : "### Impact\n\nThe software 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.\n\n### Patches\n\n`think-config@1.1.3` patched it, anyone used `think-config` should upgrade to `>=1.1.3` version.\n\n### References\n\nhttps://cwe.mitre.org/data/definitions/1321.html\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [thinkjs/thinkjs](https://github.com/thinkjs/thinkjs)\n* Email us at [i@imnerd.org](mailto:i@imnerd.org)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "think-config"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/thinkjs/think-config/security/advisories/GHSA-6cj2-92m5-7mvp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/thinkjs/think-config"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-08-02T23:23:16Z",
    "nvd_published_at" : null
  }
}