CVE-2021-20066: Withdrawn Advisory Insufficient Granularity Of Access Control Vulnerability
LOWCVE-2021-20066 is a LOW (CVSS 0.0) insufficient granularity of access control vulnerability (CWE-1220: Insufficient Granularity of Access Control) affecting Withdrawn Advisory libraries in the npm ecosystem. The issue involves insufficient granularity of access control in jsdom. Remediation is available by upgrading affected packages to version 16.5.0.
CVE-2021-20066 at a Glance
Security Impact
CVSS: 0.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N).
How to Fix CVE-2021-20066
To remediate this vulnerability, upgrade all affected Withdrawn Advisory 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 jsdom@16.5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls jsdom
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-20066, inspect your project dependencies using npm:
npm ls jsdom
Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.5.0), your application is affected.
Note: The npm ls jsdom 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-1220: Insufficient Granularity of Access Control, where the product implements access controls via a policy or other feature with the intention to disable or restrict accesses (reads and/or writes) to assets in a system from untrusted agents. however, implemented access controls lack required granularity, which renders the control policy too broad because it allows accesses from unauthorized agents to the security-sensitive assets. In Withdrawn Advisory, 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-20066 Affected Withdrawn Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jsdom
|
npm |
< 16.5.0
|
16.5.0
|
References
Frequently Asked Questions
What is CVE-2021-20066?
Which Withdrawn Advisory versions are affected?
What version fixes CVE-2021-20066?
Is jsdom affected?
What is the CVSS score of CVE-2021-20066?
What CWE is associated with CVE-2021-20066?
How can I check npm dependencies for CVE-2021-20066?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f4c9-cqv8-9v98",
"modified" : "2024-07-19T18:34:30Z",
"published" : "2022-05-24T17:42:20Z",
"withdrawn" : "2024-07-19T18:34:30Z",
"aliases" : [ "CVE-2021-20066" ],
"summary" : "Withdrawn Advisory: Insufficient Granularity of Access Control in JSDom",
"details" : "# Withdrawn Advisory\n\nThis advisory has been withdrawn because the user must configure jsdom to allow access to local files.\n\n# Original Description\n\nJSDom improperly allows the loading of local resources, which allows for local files to be manipulated by a malicious web page when script execution is enabled.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jsdom"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "16.5.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 16.4.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-20066"
}, {
"type" : "WEB",
"url" : "https://github.com/jsdom/jsdom/issues/3124"
}, {
"type" : "WEB",
"url" : "https://github.com/jsdom/jsdom/issues/3124#issuecomment-783502951"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jsdom/jsdom"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-JSDOM-1075447"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/research/tra-2021-05"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1220" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-22T18:50:49Z",
"nvd_published_at" : "2021-02-16T20:15:00Z"
}
}