{
"auditReportVersion": 2,
"vulnerabilities": {
"dompurify": {
"name": "dompurify",
"severity": "moderate",
"isDirect": false,
"via": [
{
"source": 1102259,
"name": "dompurify",
"dependency": "dompurify",
"title": "DOMPurify allows Cross-site Scripting (XSS)",
"url": "https://github.com/advisories/GHSA-vhxf-7vqr-mrjg",
"severity": "moderate",
"cwe": [
"CWE-79"
],
"cvss": {
"score": 4.5,
"vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"
},
"range": "<3.2.4"
}
],
"effects": [
"jspdf"
],
"range": "<3.2.4",
"nodes": [
"node_modules/dompurify"
],
"fixAvailable": true
},
"html2pdf.js": {
"name": "html2pdf.js",
"severity": "high",
"isDirect": true,
"via": [
"jspdf"
],
"effects": [],
"range": "<=0.10.2",
"nodes": [
"node_modules/html2pdf.js"
],
"fixAvailable": true
},
"jspdf": {
"name": "jspdf",
"severity": "high",
"isDirect": false,
"via": [
{
"source": 1103308,
"name": "jspdf",
"dependency": "jspdf",
"title": "jsPDF Bypass Regular Expression Denial of Service (ReDoS)",
"url": "https://github.com/advisories/GHSA-w532-jxjh-hjhj",
"severity": "high",
"cwe": [
"CWE-400",
"CWE-770"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<3.0.1"
},
"dompurify"
],
"effects": [
"html2pdf.js"
],
"range": "<=3.0.0",
"nodes": [
"node_modules/jspdf"
],
"fixAvailable": true
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 0,
"moderate": 1,
"high": 2,
"critical": 0,
"total": 3
},
"dependencies": {
"prod": 14,
"dev": 0,
"optional": 10,
"peer": 0,
"peerOptional": 0,
"total": 23
}
}
}
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Output of
npm auditdoesn't always list all vulnerabilities when using default output format.Expected Behavior
Output of
npm auditalways list all vulnerabilities when using default output format.Steps To Reproduce
Install vulnerable package:
Run audit (JSON output format):
Observe output (JSON format):
👉 Show/hide output 👈
{ "auditReportVersion": 2, "vulnerabilities": { "dompurify": { "name": "dompurify", "severity": "moderate", "isDirect": false, "via": [ { "source": 1102259, "name": "dompurify", "dependency": "dompurify", "title": "DOMPurify allows Cross-site Scripting (XSS)", "url": "https://github.com/advisories/GHSA-vhxf-7vqr-mrjg", "severity": "moderate", "cwe": [ "CWE-79" ], "cvss": { "score": 4.5, "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N" }, "range": "<3.2.4" } ], "effects": [ "jspdf" ], "range": "<3.2.4", "nodes": [ "node_modules/dompurify" ], "fixAvailable": true }, "html2pdf.js": { "name": "html2pdf.js", "severity": "high", "isDirect": true, "via": [ "jspdf" ], "effects": [], "range": "<=0.10.2", "nodes": [ "node_modules/html2pdf.js" ], "fixAvailable": true }, "jspdf": { "name": "jspdf", "severity": "high", "isDirect": false, "via": [ { "source": 1103308, "name": "jspdf", "dependency": "jspdf", "title": "jsPDF Bypass Regular Expression Denial of Service (ReDoS)", "url": "https://github.com/advisories/GHSA-w532-jxjh-hjhj", "severity": "high", "cwe": [ "CWE-400", "CWE-770" ], "cvss": { "score": 0, "vectorString": null }, "range": "<3.0.1" }, "dompurify" ], "effects": [ "html2pdf.js" ], "range": "<=3.0.0", "nodes": [ "node_modules/jspdf" ], "fixAvailable": true } }, "metadata": { "vulnerabilities": { "info": 0, "low": 0, "moderate": 1, "high": 2, "critical": 0, "total": 3 }, "dependencies": { "prod": 14, "dev": 0, "optional": 10, "peer": 0, "peerOptional": 0, "total": 23 } } }Run audit (default output format):
Observe output (default format):
👉 Show/hide output 👈
Look at differences:
Environment