Vulnerabilities in pkg:npm/think-helper
PACKAGECVE-2021-32736 is a HIGH (CVSS 7.5) prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Think helper libraries in the npm ecosystem. The issue involves prototype pollution in think-helper. Remediation is available by upgrading affected packages to version 1.1.3.
pkg:npm/think-helper
Vulnerability advisories affecting package pkg:npm/think-helper. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-vr5m-3h59-7jcp | CVE-2021-32736 | HIGH | Prototype Pollution in think-helper |
CVE-2021-32736 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 CVE-2021-32736
To remediate this vulnerability, upgrade all affected Think helper 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-helper@1.1.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls think-helper
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-32736, inspect your project dependencies using npm:
npm ls think-helper
Analyze the terminal output to locate any version of Think helper 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-helper 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 helper, 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
CVE-2021-32736 Affected Think helper Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
think-helper
|
npm |
< 1.1.3
|
1.1.3
|
References
Frequently Asked Questions
What is CVE-2021-32736?
Which Think helper versions are affected?
What version fixes CVE-2021-32736?
Is think-helper affected?
What is the CVSS score of CVE-2021-32736?
What CWE is associated with CVE-2021-32736?
How can I check npm dependencies for CVE-2021-32736?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vr5m-3h59-7jcp",
"modified" : "2022-05-26T19:57:25Z",
"published" : "2021-07-01T17:01:59Z",
"aliases" : [ "CVE-2021-32736" ],
"summary" : "Prototype Pollution in think-helper",
"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-helper@1.1.3` patched it, anyone used `think-helper` 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-helper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/thinkjs/think-helper/security/advisories/GHSA-vr5m-3h59-7jcp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32736"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/thinkjs/think-helper"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321", "CWE-915" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-30T17:40:38Z",
"nvd_published_at" : "2021-06-30T18:15:00Z"
}
}