GHSA-6cj2-92m5-7mvp: Think config Improperly Controlled Modification Of Object Vulnerability
HIGHGHSA-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
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).
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.
npm install think-config@1.1.3
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
GHSA-6cj2-92m5-7mvp Affected Think config Versions
1 component(s)| 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?
Which Think config versions are affected?
What version fixes GHSA-6cj2-92m5-7mvp?
Is think-config affected?
What is the CVSS score of GHSA-6cj2-92m5-7mvp?
What CWE is associated with GHSA-6cj2-92m5-7mvp?
How can I check npm dependencies for GHSA-6cj2-92m5-7mvp?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}