Vulnerabilities in pkg:npm/oils
PACKAGECVE-2021-4260 is a MODERATE (CVSS 6.3) oils js vulnerable to open vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Oils libraries in the npm ecosystem. The issue involves oils js vulnerable to open redirect. Remediation is available by upgrading affected packages to version 8.0.0.
pkg:npm/oils
Vulnerability advisories affecting package pkg:npm/oils. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-v279-v2xm-whq9 | CVE-2021-4260 | MODERATE | Oils JS vulnerable to Open Redirect |
CVE-2021-4260 at a Glance
Security Impact
CVSS: 6.3
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:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2021-4260
To remediate this vulnerability, upgrade all affected Oils 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 oils@8.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls oils
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-4260, inspect your project dependencies using npm:
npm ls oils
Analyze the terminal output to locate any version of Oils in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.0), your application is affected.
Note: The npm ls oils 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Oils, 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-4260 Affected Oils Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
oils
|
npm |
< 8.0.0
|
8.0.0
|
References
Frequently Asked Questions
What is CVE-2021-4260?
Which Oils versions are affected?
What version fixes CVE-2021-4260?
Is oils affected?
What is the CVSS score of CVE-2021-4260?
What CWE is associated with CVE-2021-4260?
How can I check npm dependencies for CVE-2021-4260?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v279-v2xm-whq9",
"modified" : "2022-12-27T22:03:13Z",
"published" : "2022-12-19T15:30:29Z",
"aliases" : [ "CVE-2021-4260" ],
"summary" : "Oils JS vulnerable to Open Redirect",
"details" : "A vulnerability was found in oils-js. This vulnerability affects unknown code of the file core/Web.js. The manipulation leads to open redirect and the attack can be initiated remotely. The name of the patch is fad8fbae824a7d367dacb90d56cb02c5cb999d42. It is recommended to apply a patch to fix this issue. ",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "oils"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-4260"
}, {
"type" : "WEB",
"url" : "https://github.com/mannyvergel/oils-js/commit/fad8fbae824a7d367dacb90d56cb02c5cb999d42"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mannyvergel/oils-js"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.216268"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20211204010604/https://www.npmjs.com/package/oils"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-19T21:05:11Z",
"nvd_published_at" : "2022-12-19T14:15:00Z"
}
}