Vulnerabilities in pkg:npm/@ensdomains/ens
PACKAGECVE-2020-5232 is a HIGH (CVSS 8.7) malicious takeover of previously owned vulnerability (CWE-285: Improper Authorization) affecting @ensdomains/ens libraries in the npm ecosystem. The issue involves malicious takeover of previously owned ens names. Remediation is available by upgrading affected packages to version 0.4.0.
pkg:npm/@ensdomains/ens
Vulnerability advisories affecting package pkg:npm/@ensdomains/ens. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8f9f-pc5v-9r5h | CVE-2020-5232 | HIGH | Malicious takeover of previously owned ENS names |
CVE-2020-5232 at a Glance
Security Impact
CVSS: 8.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2020-5232
To remediate this vulnerability, upgrade all affected @ensdomains/ens 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 @ensdomains/ens@0.4.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @ensdomains/ens
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-5232, inspect your project dependencies using npm:
npm ls @ensdomains/ens
Analyze the terminal output to locate any version of @ensdomains/ens in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.0), your application is affected.
Note: The npm ls @ensdomains/ens 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In @ensdomains/ens, 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-2020-5232 Affected @ensdomains/ens Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@ensdomains/ens
|
npm |
< 0.4.0
|
0.4.0
|
References
Frequently Asked Questions
What is CVE-2020-5232?
Which @ensdomains/ens versions are affected?
What version fixes CVE-2020-5232?
Is @ensdomains/ens affected?
What is the CVSS score of CVE-2020-5232?
What CWE is associated with CVE-2020-5232?
How can I check npm dependencies for CVE-2020-5232?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8f9f-pc5v-9r5h",
"modified" : "2022-09-21T19:32:10Z",
"published" : "2020-01-30T23:55:04Z",
"aliases" : [ "CVE-2020-5232" ],
"summary" : "Malicious takeover of previously owned ENS names",
"details" : "### Impact\nA user who owns an ENS domain can set a \"trapdoor\", allowing them to transfer ownership to another user, and later regain ownership without the new owner's consent or awareness.\n\n### Patches\n\nA new ENS deployment is being rolled out that fixes this vulnerability in the ENS registry. The registry is newly deployed at [0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e](https://etherscan.io/address/0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e).\n\n### Workarounds\nDo not accept transfers of ENS domains from other users on the old registrar.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@ensdomains/ens"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ensdomains/ens/security/advisories/GHSA-8f9f-pc5v-9r5h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-5232"
}, {
"type" : "WEB",
"url" : "https://github.com/ensdomains/ens/commit/36e10e71fcddcade88646821e0a57cc6c19e1ecf"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-01-30T23:54:51Z",
"nvd_published_at" : "2020-01-31T00:15:00Z"
}
}