Vulnerabilities in pkg:npm/atob
PACKAGECVE-2018-3745 is a CRITICAL (CVSS 9.1) out-of-bounds read vulnerability (CWE-125: Out-of-bounds Read) affecting Atob libraries in the npm ecosystem. The issue involves out-of-bounds read in atob. Remediation is available by upgrading affected packages to version 2.1.0.
pkg:npm/atob
Vulnerability advisories affecting package pkg:npm/atob. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8w4h-3cm3-2pm2 | CVE-2018-3745 | CRITICAL | Out-of-bounds Read in atob |
CVE-2018-3745 at a Glance
Security Impact
CVSS: 9.1
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:H/I:N/A:H).
How to Fix CVE-2018-3745
To remediate this vulnerability, upgrade all affected Atob 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 atob@2.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls atob
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2018-3745, inspect your project dependencies using npm:
npm ls atob
Analyze the terminal output to locate any version of Atob in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.0), your application is affected.
Note: The npm ls atob 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-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Atob, 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-2018-3745 Affected Atob Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
atob
|
npm |
< 2.1.0
|
2.1.0
|
References
Frequently Asked Questions
What is CVE-2018-3745?
Which Atob versions are affected?
What version fixes CVE-2018-3745?
Is atob affected?
What is the CVSS score of CVE-2018-3745?
What CWE is associated with CVE-2018-3745?
How can I check npm dependencies for CVE-2018-3745?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8w4h-3cm3-2pm2",
"modified" : "2023-03-01T01:22:59Z",
"published" : "2018-10-09T00:56:26Z",
"aliases" : [ "CVE-2018-3745" ],
"summary" : "Out-of-bounds Read in atob",
"details" : "Versions of `atob` before 2.1.0 uninitialized Buffers when number is passed in input on Node.js 4.x and below.\n\n\n## Recommendation\n\nUpdate to version 2.1.0 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "atob"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-3745"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/321686"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-8w4h-3cm3-2pm2"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20230622-0009"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/646"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:26:52Z",
"nvd_published_at" : "2018-05-29T20:29:00Z"
}
}