mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
fix(npm-audit): audit the package through a wrapper project
npm 11 prints via as an array and metadata.dependencies as an object, so the parser failed on every report. It now reads both shapes of via and lists each advisory once. The lockfile step resolved devDependencies, which took 28 seconds for dayjs and reported 142 findings in its development tree. The tarball is now the only dependency of a wrapper project, audited with --omit=dev. This also audits the package itself, which npm audit skips for a root.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"auditReportVersion": 2,
|
||||
"vulnerabilities": {},
|
||||
"metadata": {
|
||||
"vulnerabilities": {
|
||||
"info": 0,
|
||||
"low": 0,
|
||||
"moderate": 0,
|
||||
"high": 0,
|
||||
"critical": 0,
|
||||
"total": 0
|
||||
},
|
||||
"dependencies": {
|
||||
"prod": 2,
|
||||
"dev": 0,
|
||||
"optional": 0,
|
||||
"peer": 0,
|
||||
"peerOptional": 0,
|
||||
"total": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"auditReportVersion": 2,
|
||||
"vulnerabilities": {
|
||||
"minimist": {
|
||||
"name": "minimist",
|
||||
"severity": "critical",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
{
|
||||
"source": 1096466,
|
||||
"name": "minimist",
|
||||
"dependency": "minimist",
|
||||
"title": "Prototype Pollution in minimist",
|
||||
"url": "https://github.com/advisories/GHSA-vh95-rmgr-6w4m",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-1321"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 5.6,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
|
||||
},
|
||||
"range": "<0.2.1"
|
||||
},
|
||||
{
|
||||
"source": 1097677,
|
||||
"name": "minimist",
|
||||
"dependency": "minimist",
|
||||
"title": "Prototype Pollution in minimist",
|
||||
"url": "https://github.com/advisories/GHSA-xvch-5gv4-984h",
|
||||
"severity": "critical",
|
||||
"cwe": [
|
||||
"CWE-1321"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 9.8,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
|
||||
},
|
||||
"range": "<0.2.4"
|
||||
}
|
||||
],
|
||||
"effects": [],
|
||||
"range": "<=0.2.3",
|
||||
"nodes": [
|
||||
"node_modules/minimist"
|
||||
],
|
||||
"fixAvailable": false
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"vulnerabilities": {
|
||||
"info": 0,
|
||||
"low": 0,
|
||||
"moderate": 0,
|
||||
"high": 0,
|
||||
"critical": 1,
|
||||
"total": 1
|
||||
},
|
||||
"dependencies": {
|
||||
"prod": 2,
|
||||
"dev": 0,
|
||||
"optional": 0,
|
||||
"peer": 0,
|
||||
"peerOptional": 0,
|
||||
"total": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
+84
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"auditReportVersion": 2,
|
||||
"vulnerabilities": {
|
||||
"minimist": {
|
||||
"name": "minimist",
|
||||
"severity": "critical",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
{
|
||||
"source": 1096466,
|
||||
"name": "minimist",
|
||||
"dependency": "minimist",
|
||||
"title": "Prototype Pollution in minimist",
|
||||
"url": "https://github.com/advisories/GHSA-vh95-rmgr-6w4m",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-1321"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 5.6,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
|
||||
},
|
||||
"range": "<0.2.1"
|
||||
},
|
||||
{
|
||||
"source": 1097677,
|
||||
"name": "minimist",
|
||||
"dependency": "minimist",
|
||||
"title": "Prototype Pollution in minimist",
|
||||
"url": "https://github.com/advisories/GHSA-xvch-5gv4-984h",
|
||||
"severity": "critical",
|
||||
"cwe": [
|
||||
"CWE-1321"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 9.8,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
|
||||
},
|
||||
"range": "<0.2.4"
|
||||
}
|
||||
],
|
||||
"effects": [
|
||||
"mkdirp"
|
||||
],
|
||||
"range": "<=0.2.3",
|
||||
"nodes": [
|
||||
"node_modules/minimist"
|
||||
],
|
||||
"fixAvailable": false
|
||||
},
|
||||
"mkdirp": {
|
||||
"name": "mkdirp",
|
||||
"severity": "critical",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
"minimist"
|
||||
],
|
||||
"effects": [],
|
||||
"range": "0.4.1 - 0.5.1",
|
||||
"nodes": [
|
||||
"node_modules/mkdirp"
|
||||
],
|
||||
"fixAvailable": false
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"vulnerabilities": {
|
||||
"info": 0,
|
||||
"low": 0,
|
||||
"moderate": 0,
|
||||
"high": 0,
|
||||
"critical": 2,
|
||||
"total": 2
|
||||
},
|
||||
"dependencies": {
|
||||
"prod": 3,
|
||||
"dev": 0,
|
||||
"optional": 0,
|
||||
"peer": 0,
|
||||
"peerOptional": 0,
|
||||
"total": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
+214
@@ -0,0 +1,214 @@
|
||||
{
|
||||
"auditReportVersion": 2,
|
||||
"vulnerabilities": {
|
||||
"form-data": {
|
||||
"name": "form-data",
|
||||
"severity": "critical",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
{
|
||||
"source": 1109540,
|
||||
"name": "form-data",
|
||||
"dependency": "form-data",
|
||||
"title": "form-data uses unsafe random function in form-data for choosing boundary",
|
||||
"url": "https://github.com/advisories/GHSA-fjxv-7rqg-78g4",
|
||||
"severity": "critical",
|
||||
"cwe": [
|
||||
"CWE-330"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 0,
|
||||
"vectorString": null
|
||||
},
|
||||
"range": "<2.5.4"
|
||||
},
|
||||
{
|
||||
"source": 1120745,
|
||||
"name": "form-data",
|
||||
"dependency": "form-data",
|
||||
"title": "form-data: CRLF injection in form-data via unescaped multipart field names and filenames",
|
||||
"url": "https://github.com/advisories/GHSA-hmw2-7cc7-3qxx",
|
||||
"severity": "high",
|
||||
"cwe": [
|
||||
"CWE-93"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 7.5,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
|
||||
},
|
||||
"range": "<2.5.6"
|
||||
}
|
||||
],
|
||||
"effects": [
|
||||
"request"
|
||||
],
|
||||
"range": "<=2.5.5",
|
||||
"nodes": [
|
||||
"node_modules/form-data"
|
||||
],
|
||||
"fixAvailable": false
|
||||
},
|
||||
"qs": {
|
||||
"name": "qs",
|
||||
"severity": "moderate",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
{
|
||||
"source": 1113719,
|
||||
"name": "qs",
|
||||
"dependency": "qs",
|
||||
"title": "qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion",
|
||||
"url": "https://github.com/advisories/GHSA-6rw7-vpxm-498p",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-20"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 3.7,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
|
||||
},
|
||||
"range": "<6.14.1"
|
||||
},
|
||||
{
|
||||
"source": 1158507,
|
||||
"name": "qs",
|
||||
"dependency": "qs",
|
||||
"title": "qs: Denial of Service via Attacker Controlled isBuffer",
|
||||
"url": "https://github.com/advisories/GHSA-4mjr-xmp4-gh2g",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-248",
|
||||
"CWE-703"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 5.3,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
|
||||
},
|
||||
"range": ">=2.2.5 <6.16.0"
|
||||
}
|
||||
],
|
||||
"effects": [
|
||||
"request"
|
||||
],
|
||||
"range": "<=6.15.4",
|
||||
"nodes": [
|
||||
"node_modules/qs"
|
||||
],
|
||||
"fixAvailable": false
|
||||
},
|
||||
"request": {
|
||||
"name": "request",
|
||||
"severity": "critical",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
{
|
||||
"source": 1096727,
|
||||
"name": "request",
|
||||
"dependency": "request",
|
||||
"title": "Server-Side Request Forgery in Request",
|
||||
"url": "https://github.com/advisories/GHSA-p8p7-x288-28g6",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-918"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 6.1,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
|
||||
},
|
||||
"range": "<=2.88.2"
|
||||
},
|
||||
"form-data",
|
||||
"qs",
|
||||
"tough-cookie",
|
||||
"uuid"
|
||||
],
|
||||
"effects": [],
|
||||
"range": "*",
|
||||
"nodes": [
|
||||
"node_modules/request"
|
||||
],
|
||||
"fixAvailable": false
|
||||
},
|
||||
"tough-cookie": {
|
||||
"name": "tough-cookie",
|
||||
"severity": "moderate",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
{
|
||||
"source": 1097682,
|
||||
"name": "tough-cookie",
|
||||
"dependency": "tough-cookie",
|
||||
"title": "tough-cookie Prototype Pollution vulnerability",
|
||||
"url": "https://github.com/advisories/GHSA-72xf-g2v4-qvf3",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-1321"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 6.5,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
|
||||
},
|
||||
"range": "<4.1.3"
|
||||
}
|
||||
],
|
||||
"effects": [
|
||||
"request"
|
||||
],
|
||||
"range": "<4.1.3",
|
||||
"nodes": [
|
||||
"node_modules/tough-cookie"
|
||||
],
|
||||
"fixAvailable": false
|
||||
},
|
||||
"uuid": {
|
||||
"name": "uuid",
|
||||
"severity": "moderate",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
{
|
||||
"source": 1119441,
|
||||
"name": "uuid",
|
||||
"dependency": "uuid",
|
||||
"title": "uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided",
|
||||
"url": "https://github.com/advisories/GHSA-w5hq-g745-h8pq",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-787",
|
||||
"CWE-1285"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 7.5,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
|
||||
},
|
||||
"range": "<11.1.1"
|
||||
}
|
||||
],
|
||||
"effects": [
|
||||
"request"
|
||||
],
|
||||
"range": "<11.1.1",
|
||||
"nodes": [
|
||||
"node_modules/uuid"
|
||||
],
|
||||
"fixAvailable": false
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"vulnerabilities": {
|
||||
"info": 0,
|
||||
"low": 0,
|
||||
"moderate": 3,
|
||||
"high": 0,
|
||||
"critical": 2,
|
||||
"total": 5
|
||||
},
|
||||
"dependencies": {
|
||||
"prod": 48,
|
||||
"dev": 0,
|
||||
"optional": 0,
|
||||
"peer": 0,
|
||||
"peerOptional": 0,
|
||||
"total": 47
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user