This run took 54 seconds.
$ date --- stdout --- Sun Apr 28 17:36:05 UTC 2024 --- end --- $ git clone file:///srv/git/mediawiki-services-citoid.git repo --depth=1 -b master --- stderr --- Cloning into 'repo'... --- stdout --- --- end --- $ git config user.name libraryupgrader --- stdout --- --- end --- $ git config user.email tools.libraryupgrader@tools.wmflabs.org --- stdout --- --- end --- $ git submodule update --init --- stdout --- --- end --- $ grr init --- stdout --- Installed commit-msg hook. --- end --- $ git show-ref refs/heads/master --- stdout --- 82b38a7b1cc824428ef03426ff982d054dd1ea0b refs/heads/master --- end --- $ /usr/bin/npm audit --json --- stdout --- { "auditReportVersion": 2, "vulnerabilities": { "cheerio": { "name": "cheerio", "severity": "high", "isDirect": false, "via": [ "css-select" ], "effects": [], "range": "0.19.0 - 1.0.0-rc.3", "nodes": [ "node_modules/html-metadata/node_modules/cheerio" ], "fixAvailable": true }, "css-select": { "name": "css-select", "severity": "high", "isDirect": false, "via": [ "nth-check" ], "effects": [ "cheerio" ], "range": "<=3.1.0", "nodes": [ "node_modules/css-select" ], "fixAvailable": true }, "html-metadata": { "name": "html-metadata", "severity": "high", "isDirect": true, "via": [ "cheerio", "preq" ], "effects": [], "range": ">=1.0.0", "nodes": [ "node_modules/html-metadata" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "limitation": { "name": "limitation", "severity": "moderate", "isDirect": false, "via": [ "wikimedia-kad-fork" ], "effects": [ "service-runner" ], "range": ">=0.2.3", "nodes": [ "node_modules/limitation" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "ms": { "name": "ms", "severity": "moderate", "isDirect": false, "via": [ { "source": 1094419, "name": "ms", "dependency": "ms", "title": "Vercel ms Inefficient Regular Expression Complexity vulnerability", "url": "https://github.com/advisories/GHSA-w9mr-4mfr-499f", "severity": "moderate", "cwe": [ "CWE-1333" ], "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.0.0" } ], "effects": [ "wikimedia-kad-fork" ], "range": "<2.0.0", "nodes": [ "node_modules/wikimedia-kad-fork/node_modules/ms" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "nth-check": { "name": "nth-check", "severity": "high", "isDirect": false, "via": [ { "source": 1095141, "name": "nth-check", "dependency": "nth-check", "title": "Inefficient Regular Expression Complexity in nth-check", "url": "https://github.com/advisories/GHSA-rp65-9cf3-cjxr", "severity": "high", "cwe": [ "CWE-1333" ], "cvss": { "score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" }, "range": "<2.0.1" } ], "effects": [ "css-select" ], "range": "<2.0.1", "nodes": [ "node_modules/nth-check" ], "fixAvailable": true }, "preq": { "name": "preq", "severity": "high", "isDirect": true, "via": [ "request", "requestretry" ], "effects": [ "html-metadata" ], "range": "*", "nodes": [ "node_modules/preq" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "request": { "name": "request", "severity": "moderate", "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" }, "tough-cookie" ], "effects": [ "preq", "requestretry" ], "range": "*", "nodes": [ "node_modules/request" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "requestretry": { "name": "requestretry", "severity": "high", "isDirect": false, "via": [ { "source": 1090420, "name": "requestretry", "dependency": "requestretry", "title": "Cookie exposure in requestretry", "url": "https://github.com/advisories/GHSA-hjp8-2cm3-cc45", "severity": "high", "cwe": [ "CWE-200" ], "cvss": { "score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N" }, "range": "<7.0.0" }, "request" ], "effects": [ "preq" ], "range": "*", "nodes": [ "node_modules/requestretry" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "service-runner": { "name": "service-runner", "severity": "moderate", "isDirect": true, "via": [ "limitation", "tar" ], "effects": [], "range": ">=3.0.0", "nodes": [ "node_modules/service-runner" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "swagger-ui-dist": { "name": "swagger-ui-dist", "severity": "moderate", "isDirect": true, "via": [ { "source": 1088759, "name": "swagger-ui-dist", "dependency": "swagger-ui-dist", "title": "Spoofing attack in swagger-ui-dist", "url": "https://github.com/advisories/GHSA-6c9x-mj3g-h47x", "severity": "moderate", "cwe": [ "CWE-1021" ], "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": "<4.1.3" }, { "source": 1092160, "name": "swagger-ui-dist", "dependency": "swagger-ui-dist", "title": "Server side request forgery in SwaggerUI", "url": "https://github.com/advisories/GHSA-qrmm-w75w-3wpx", "severity": "moderate", "cwe": [ "CWE-918" ], "cvss": { "score": 0, "vectorString": null }, "range": "<4.1.3" } ], "effects": [], "range": "<=4.1.2", "nodes": [ "node_modules/swagger-ui-dist" ], "fixAvailable": { "name": "swagger-ui-dist", "version": "5.17.2", "isSemVerMajor": true } }, "tar": { "name": "tar", "severity": "moderate", "isDirect": false, "via": [ { "source": 1096915, "name": "tar", "dependency": "tar", "title": "Denial of service while parsing a tar file due to lack of folders count validation", "url": "https://github.com/advisories/GHSA-f5x3-32g6-xq36", "severity": "moderate", "cwe": [ "CWE-400" ], "cvss": { "score": 6.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H" }, "range": "<6.2.1" } ], "effects": [ "service-runner" ], "range": "<6.2.1", "nodes": [ "node_modules/tar" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "tough-cookie": { "name": "tough-cookie", "severity": "moderate", "isDirect": true, "via": [ { "source": 1096643, "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/request/node_modules/tough-cookie", "node_modules/tough-cookie" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "wikimedia-kad-fork": { "name": "wikimedia-kad-fork", "severity": "moderate", "isDirect": false, "via": [ "ms" ], "effects": [ "limitation" ], "range": "*", "nodes": [ "node_modules/wikimedia-kad-fork" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } } }, "metadata": { "vulnerabilities": { "info": 0, "low": 0, "moderate": 8, "high": 6, "critical": 0, "total": 14 }, "dependencies": { "prod": 277, "dev": 394, "optional": 12, "peer": 1, "peerOptional": 0, "total": 682 } } } --- end --- $ /usr/bin/npm audit --json --- stdout --- { "auditReportVersion": 2, "vulnerabilities": { "cheerio": { "name": "cheerio", "severity": "high", "isDirect": false, "via": [ "css-select" ], "effects": [], "range": "0.19.0 - 1.0.0-rc.3", "nodes": [ "node_modules/html-metadata/node_modules/cheerio" ], "fixAvailable": true }, "css-select": { "name": "css-select", "severity": "high", "isDirect": false, "via": [ "nth-check" ], "effects": [ "cheerio" ], "range": "<=3.1.0", "nodes": [ "node_modules/css-select" ], "fixAvailable": true }, "html-metadata": { "name": "html-metadata", "severity": "high", "isDirect": true, "via": [ "cheerio", "preq" ], "effects": [], "range": ">=1.0.0", "nodes": [ "node_modules/html-metadata" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "limitation": { "name": "limitation", "severity": "moderate", "isDirect": false, "via": [ "wikimedia-kad-fork" ], "effects": [ "service-runner" ], "range": ">=0.2.3", "nodes": [ "node_modules/limitation" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "ms": { "name": "ms", "severity": "moderate", "isDirect": false, "via": [ { "source": 1094419, "name": "ms", "dependency": "ms", "title": "Vercel ms Inefficient Regular Expression Complexity vulnerability", "url": "https://github.com/advisories/GHSA-w9mr-4mfr-499f", "severity": "moderate", "cwe": [ "CWE-1333" ], "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.0.0" } ], "effects": [ "wikimedia-kad-fork" ], "range": "<2.0.0", "nodes": [ "node_modules/wikimedia-kad-fork/node_modules/ms" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "nth-check": { "name": "nth-check", "severity": "high", "isDirect": false, "via": [ { "source": 1095141, "name": "nth-check", "dependency": "nth-check", "title": "Inefficient Regular Expression Complexity in nth-check", "url": "https://github.com/advisories/GHSA-rp65-9cf3-cjxr", "severity": "high", "cwe": [ "CWE-1333" ], "cvss": { "score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" }, "range": "<2.0.1" } ], "effects": [ "css-select" ], "range": "<2.0.1", "nodes": [ "node_modules/nth-check" ], "fixAvailable": true }, "preq": { "name": "preq", "severity": "high", "isDirect": true, "via": [ "request", "requestretry" ], "effects": [ "html-metadata" ], "range": "*", "nodes": [ "node_modules/preq" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "request": { "name": "request", "severity": "moderate", "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" }, "tough-cookie" ], "effects": [ "preq", "requestretry" ], "range": "*", "nodes": [ "node_modules/request" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "requestretry": { "name": "requestretry", "severity": "high", "isDirect": false, "via": [ { "source": 1090420, "name": "requestretry", "dependency": "requestretry", "title": "Cookie exposure in requestretry", "url": "https://github.com/advisories/GHSA-hjp8-2cm3-cc45", "severity": "high", "cwe": [ "CWE-200" ], "cvss": { "score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N" }, "range": "<7.0.0" }, "request" ], "effects": [ "preq" ], "range": "*", "nodes": [ "node_modules/requestretry" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "service-runner": { "name": "service-runner", "severity": "moderate", "isDirect": true, "via": [ "limitation", "tar" ], "effects": [], "range": ">=3.0.0", "nodes": [ "node_modules/service-runner" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "swagger-ui-dist": { "name": "swagger-ui-dist", "severity": "moderate", "isDirect": true, "via": [ { "source": 1088759, "name": "swagger-ui-dist", "dependency": "swagger-ui-dist", "title": "Spoofing attack in swagger-ui-dist", "url": "https://github.com/advisories/GHSA-6c9x-mj3g-h47x", "severity": "moderate", "cwe": [ "CWE-1021" ], "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": "<4.1.3" }, { "source": 1092160, "name": "swagger-ui-dist", "dependency": "swagger-ui-dist", "title": "Server side request forgery in SwaggerUI", "url": "https://github.com/advisories/GHSA-qrmm-w75w-3wpx", "severity": "moderate", "cwe": [ "CWE-918" ], "cvss": { "score": 0, "vectorString": null }, "range": "<4.1.3" } ], "effects": [], "range": "<=4.1.2", "nodes": [ "node_modules/swagger-ui-dist" ], "fixAvailable": { "name": "swagger-ui-dist", "version": "5.17.2", "isSemVerMajor": true } }, "tar": { "name": "tar", "severity": "moderate", "isDirect": false, "via": [ { "source": 1096915, "name": "tar", "dependency": "tar", "title": "Denial of service while parsing a tar file due to lack of folders count validation", "url": "https://github.com/advisories/GHSA-f5x3-32g6-xq36", "severity": "moderate", "cwe": [ "CWE-400" ], "cvss": { "score": 6.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H" }, "range": "<6.2.1" } ], "effects": [ "service-runner" ], "range": "<6.2.1", "nodes": [ "node_modules/tar" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "tough-cookie": { "name": "tough-cookie", "severity": "moderate", "isDirect": true, "via": [ { "source": 1096643, "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/request/node_modules/tough-cookie", "node_modules/tough-cookie" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "wikimedia-kad-fork": { "name": "wikimedia-kad-fork", "severity": "moderate", "isDirect": false, "via": [ "ms" ], "effects": [ "limitation" ], "range": "*", "nodes": [ "node_modules/wikimedia-kad-fork" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } } }, "metadata": { "vulnerabilities": { "info": 0, "low": 0, "moderate": 8, "high": 6, "critical": 0, "total": 14 }, "dependencies": { "prod": 277, "dev": 394, "optional": 12, "peer": 1, "peerOptional": 0, "total": 682 } } } --- end --- Attempting to npm audit fix $ /usr/bin/npm audit fix --dry-run --only=dev --json --- stderr --- npm WARN invalid config only="dev" set in command line options npm WARN invalid config Must be one of: null, prod, production npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'citoid@1.1.1', npm WARN EBADENGINE required: { node: '16' }, npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '9.2.0' } npm WARN EBADENGINE } --- stdout --- { "added": 682, "removed": 0, "changed": 0, "audited": 683, "funding": 86, "audit": { "auditReportVersion": 2, "vulnerabilities": { "cheerio": { "name": "cheerio", "severity": "high", "isDirect": false, "via": [ "css-select" ], "effects": [], "range": "0.19.0 - 1.0.0-rc.3", "nodes": [ "node_modules/html-metadata/node_modules/cheerio" ], "fixAvailable": true }, "css-select": { "name": "css-select", "severity": "high", "isDirect": false, "via": [ "nth-check" ], "effects": [ "cheerio" ], "range": "<=3.1.0", "nodes": [ "node_modules/css-select" ], "fixAvailable": true }, "html-metadata": { "name": "html-metadata", "severity": "high", "isDirect": true, "via": [ "cheerio", "preq" ], "effects": [], "range": ">=1.0.0", "nodes": [ "node_modules/html-metadata" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "limitation": { "name": "limitation", "severity": "moderate", "isDirect": false, "via": [ "wikimedia-kad-fork" ], "effects": [ "service-runner" ], "range": ">=0.2.3", "nodes": [ "node_modules/limitation" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "ms": { "name": "ms", "severity": "moderate", "isDirect": false, "via": [ { "source": 1094419, "name": "ms", "dependency": "ms", "title": "Vercel ms Inefficient Regular Expression Complexity vulnerability", "url": "https://github.com/advisories/GHSA-w9mr-4mfr-499f", "severity": "moderate", "cwe": [ "CWE-1333" ], "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.0.0" } ], "effects": [ "wikimedia-kad-fork" ], "range": "<2.0.0", "nodes": [ "node_modules/wikimedia-kad-fork/node_modules/ms" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "nth-check": { "name": "nth-check", "severity": "high", "isDirect": false, "via": [ { "source": 1095141, "name": "nth-check", "dependency": "nth-check", "title": "Inefficient Regular Expression Complexity in nth-check", "url": "https://github.com/advisories/GHSA-rp65-9cf3-cjxr", "severity": "high", "cwe": [ "CWE-1333" ], "cvss": { "score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" }, "range": "<2.0.1" } ], "effects": [ "css-select" ], "range": "<2.0.1", "nodes": [ "node_modules/nth-check" ], "fixAvailable": true }, "preq": { "name": "preq", "severity": "high", "isDirect": true, "via": [ "request", "requestretry" ], "effects": [ "html-metadata" ], "range": "*", "nodes": [ "node_modules/preq" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "request": { "name": "request", "severity": "moderate", "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" }, "tough-cookie" ], "effects": [ "preq", "requestretry" ], "range": "*", "nodes": [ "node_modules/request" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "requestretry": { "name": "requestretry", "severity": "high", "isDirect": false, "via": [ { "source": 1090420, "name": "requestretry", "dependency": "requestretry", "title": "Cookie exposure in requestretry", "url": "https://github.com/advisories/GHSA-hjp8-2cm3-cc45", "severity": "high", "cwe": [ "CWE-200" ], "cvss": { "score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N" }, "range": "<7.0.0" }, "request" ], "effects": [ "preq" ], "range": "*", "nodes": [ "node_modules/requestretry" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "service-runner": { "name": "service-runner", "severity": "moderate", "isDirect": true, "via": [ "limitation", "tar" ], "effects": [], "range": ">=3.0.0", "nodes": [ "node_modules/service-runner" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "swagger-ui-dist": { "name": "swagger-ui-dist", "severity": "moderate", "isDirect": true, "via": [ { "source": 1088759, "name": "swagger-ui-dist", "dependency": "swagger-ui-dist", "title": "Spoofing attack in swagger-ui-dist", "url": "https://github.com/advisories/GHSA-6c9x-mj3g-h47x", "severity": "moderate", "cwe": [ "CWE-1021" ], "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": "<4.1.3" }, { "source": 1092160, "name": "swagger-ui-dist", "dependency": "swagger-ui-dist", "title": "Server side request forgery in SwaggerUI", "url": "https://github.com/advisories/GHSA-qrmm-w75w-3wpx", "severity": "moderate", "cwe": [ "CWE-918" ], "cvss": { "score": 0, "vectorString": null }, "range": "<4.1.3" } ], "effects": [], "range": "<=4.1.2", "nodes": [ "node_modules/swagger-ui-dist" ], "fixAvailable": { "name": "swagger-ui-dist", "version": "5.17.2", "isSemVerMajor": true } }, "tar": { "name": "tar", "severity": "moderate", "isDirect": false, "via": [ { "source": 1096915, "name": "tar", "dependency": "tar", "title": "Denial of service while parsing a tar file due to lack of folders count validation", "url": "https://github.com/advisories/GHSA-f5x3-32g6-xq36", "severity": "moderate", "cwe": [ "CWE-400" ], "cvss": { "score": 6.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H" }, "range": "<6.2.1" } ], "effects": [ "service-runner" ], "range": "<6.2.1", "nodes": [ "node_modules/tar" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } }, "tough-cookie": { "name": "tough-cookie", "severity": "moderate", "isDirect": true, "via": [ { "source": 1096643, "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/request/node_modules/tough-cookie", "node_modules/tough-cookie" ], "fixAvailable": { "name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true } }, "wikimedia-kad-fork": { "name": "wikimedia-kad-fork", "severity": "moderate", "isDirect": false, "via": [ "ms" ], "effects": [ "limitation" ], "range": "*", "nodes": [ "node_modules/wikimedia-kad-fork" ], "fixAvailable": { "name": "service-runner", "version": "5.0.0", "isSemVerMajor": true } } }, "metadata": { "vulnerabilities": { "info": 0, "low": 0, "moderate": 8, "high": 6, "critical": 0, "total": 14 }, "dependencies": { "prod": 277, "dev": 394, "optional": 12, "peer": 1, "peerOptional": 0, "total": 682 } } } } --- end --- {"added": 682, "removed": 0, "changed": 0, "audited": 683, "funding": 86, "audit": {"auditReportVersion": 2, "vulnerabilities": {"cheerio": {"name": "cheerio", "severity": "high", "isDirect": false, "via": ["css-select"], "effects": [], "range": "0.19.0 - 1.0.0-rc.3", "nodes": ["node_modules/html-metadata/node_modules/cheerio"], "fixAvailable": true}, "css-select": {"name": "css-select", "severity": "high", "isDirect": false, "via": ["nth-check"], "effects": ["cheerio"], "range": "<=3.1.0", "nodes": ["node_modules/css-select"], "fixAvailable": true}, "html-metadata": {"name": "html-metadata", "severity": "high", "isDirect": true, "via": ["cheerio", "preq"], "effects": [], "range": ">=1.0.0", "nodes": ["node_modules/html-metadata"], "fixAvailable": {"name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true}}, "limitation": {"name": "limitation", "severity": "moderate", "isDirect": false, "via": ["wikimedia-kad-fork"], "effects": ["service-runner"], "range": ">=0.2.3", "nodes": ["node_modules/limitation"], "fixAvailable": {"name": "service-runner", "version": "5.0.0", "isSemVerMajor": true}}, "ms": {"name": "ms", "severity": "moderate", "isDirect": false, "via": [{"source": 1094419, "name": "ms", "dependency": "ms", "title": "Vercel ms Inefficient Regular Expression Complexity vulnerability", "url": "https://github.com/advisories/GHSA-w9mr-4mfr-499f", "severity": "moderate", "cwe": ["CWE-1333"], "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.0.0"}], "effects": ["wikimedia-kad-fork"], "range": "<2.0.0", "nodes": ["node_modules/wikimedia-kad-fork/node_modules/ms"], "fixAvailable": {"name": "service-runner", "version": "5.0.0", "isSemVerMajor": true}}, "nth-check": {"name": "nth-check", "severity": "high", "isDirect": false, "via": [{"source": 1095141, "name": "nth-check", "dependency": "nth-check", "title": "Inefficient Regular Expression Complexity in nth-check", "url": "https://github.com/advisories/GHSA-rp65-9cf3-cjxr", "severity": "high", "cwe": ["CWE-1333"], "cvss": {"score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}, "range": "<2.0.1"}], "effects": ["css-select"], "range": "<2.0.1", "nodes": ["node_modules/nth-check"], "fixAvailable": true}, "preq": {"name": "preq", "severity": "high", "isDirect": true, "via": ["request", "requestretry"], "effects": ["html-metadata"], "range": "*", "nodes": ["node_modules/preq"], "fixAvailable": {"name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true}}, "request": {"name": "request", "severity": "moderate", "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"}, "tough-cookie"], "effects": ["preq", "requestretry"], "range": "*", "nodes": ["node_modules/request"], "fixAvailable": {"name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true}}, "requestretry": {"name": "requestretry", "severity": "high", "isDirect": false, "via": [{"source": 1090420, "name": "requestretry", "dependency": "requestretry", "title": "Cookie exposure in requestretry", "url": "https://github.com/advisories/GHSA-hjp8-2cm3-cc45", "severity": "high", "cwe": ["CWE-200"], "cvss": {"score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}, "range": "<7.0.0"}, "request"], "effects": ["preq"], "range": "*", "nodes": ["node_modules/requestretry"], "fixAvailable": {"name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true}}, "service-runner": {"name": "service-runner", "severity": "moderate", "isDirect": true, "via": ["limitation", "tar"], "effects": [], "range": ">=3.0.0", "nodes": ["node_modules/service-runner"], "fixAvailable": {"name": "service-runner", "version": "5.0.0", "isSemVerMajor": true}}, "swagger-ui-dist": {"name": "swagger-ui-dist", "severity": "moderate", "isDirect": true, "via": [{"source": 1088759, "name": "swagger-ui-dist", "dependency": "swagger-ui-dist", "title": "Spoofing attack in swagger-ui-dist", "url": "https://github.com/advisories/GHSA-6c9x-mj3g-h47x", "severity": "moderate", "cwe": ["CWE-1021"], "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": "<4.1.3"}, {"source": 1092160, "name": "swagger-ui-dist", "dependency": "swagger-ui-dist", "title": "Server side request forgery in SwaggerUI", "url": "https://github.com/advisories/GHSA-qrmm-w75w-3wpx", "severity": "moderate", "cwe": ["CWE-918"], "cvss": {"score": 0, "vectorString": null}, "range": "<4.1.3"}], "effects": [], "range": "<=4.1.2", "nodes": ["node_modules/swagger-ui-dist"], "fixAvailable": {"name": "swagger-ui-dist", "version": "5.17.2", "isSemVerMajor": true}}, "tar": {"name": "tar", "severity": "moderate", "isDirect": false, "via": [{"source": 1096915, "name": "tar", "dependency": "tar", "title": "Denial of service while parsing a tar file due to lack of folders count validation", "url": "https://github.com/advisories/GHSA-f5x3-32g6-xq36", "severity": "moderate", "cwe": ["CWE-400"], "cvss": {"score": 6.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}, "range": "<6.2.1"}], "effects": ["service-runner"], "range": "<6.2.1", "nodes": ["node_modules/tar"], "fixAvailable": {"name": "service-runner", "version": "5.0.0", "isSemVerMajor": true}}, "tough-cookie": {"name": "tough-cookie", "severity": "moderate", "isDirect": true, "via": [{"source": 1096643, "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/request/node_modules/tough-cookie", "node_modules/tough-cookie"], "fixAvailable": {"name": "html-metadata", "version": "0.1.3", "isSemVerMajor": true}}, "wikimedia-kad-fork": {"name": "wikimedia-kad-fork", "severity": "moderate", "isDirect": false, "via": ["ms"], "effects": ["limitation"], "range": "*", "nodes": ["node_modules/wikimedia-kad-fork"], "fixAvailable": {"name": "service-runner", "version": "5.0.0", "isSemVerMajor": true}}}, "metadata": {"vulnerabilities": {"info": 0, "low": 0, "moderate": 8, "high": 6, "critical": 0, "total": 14}, "dependencies": {"prod": 277, "dev": 394, "optional": 12, "peer": 1, "peerOptional": 0, "total": 682}}}} $ /usr/bin/npm audit fix --only=dev --- stderr --- npm WARN invalid config only="dev" set in command line options npm WARN invalid config Must be one of: null, prod, production npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'citoid@1.1.1', npm WARN EBADENGINE required: { node: '16' }, npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN deprecated kad-fs@0.0.4: This package is no longer maintained. npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated kad-memstore@0.0.1: This package is no longer maintained. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 --- stdout --- added 682 packages, and audited 683 packages in 8s 86 packages are looking for funding run `npm fund` for details # npm audit report ms <2.0.0 Severity: moderate Vercel ms Inefficient Regular Expression Complexity vulnerability - https://github.com/advisories/GHSA-w9mr-4mfr-499f fix available via `npm audit fix --force` Will install service-runner@5.0.0, which is a breaking change node_modules/wikimedia-kad-fork/node_modules/ms wikimedia-kad-fork * Depends on vulnerable versions of ms node_modules/wikimedia-kad-fork limitation >=0.2.3 Depends on vulnerable versions of wikimedia-kad-fork node_modules/limitation service-runner >=3.0.0 Depends on vulnerable versions of limitation Depends on vulnerable versions of tar node_modules/service-runner nth-check <2.0.1 Severity: high Inefficient Regular Expression Complexity in nth-check - https://github.com/advisories/GHSA-rp65-9cf3-cjxr fix available via `npm audit fix` node_modules/nth-check css-select <=3.1.0 Depends on vulnerable versions of nth-check node_modules/css-select cheerio 0.19.0 - 1.0.0-rc.3 Depends on vulnerable versions of css-select node_modules/html-metadata/node_modules/cheerio request * Severity: moderate Server-Side Request Forgery in Request - https://github.com/advisories/GHSA-p8p7-x288-28g6 Depends on vulnerable versions of tough-cookie fix available via `npm audit fix --force` Will install html-metadata@0.1.3, which is a breaking change node_modules/request preq * Depends on vulnerable versions of request Depends on vulnerable versions of requestretry node_modules/preq html-metadata >=1.0.0 Depends on vulnerable versions of cheerio Depends on vulnerable versions of preq node_modules/html-metadata requestretry * Depends on vulnerable versions of request node_modules/requestretry swagger-ui-dist <=4.1.2 Severity: moderate Spoofing attack in swagger-ui-dist - https://github.com/advisories/GHSA-6c9x-mj3g-h47x Server side request forgery in SwaggerUI - https://github.com/advisories/GHSA-qrmm-w75w-3wpx fix available via `npm audit fix --force` Will install swagger-ui-dist@5.17.2, which is a breaking change node_modules/swagger-ui-dist tar <6.2.1 Severity: moderate Denial of service while parsing a tar file due to lack of folders count validation - https://github.com/advisories/GHSA-f5x3-32g6-xq36 fix available via `npm audit fix --force` Will install service-runner@5.0.0, which is a breaking change node_modules/tar tough-cookie <4.1.3 Severity: moderate tough-cookie Prototype Pollution vulnerability - https://github.com/advisories/GHSA-72xf-g2v4-qvf3 fix available via `npm audit fix --force` Will install html-metadata@0.1.3, which is a breaking change node_modules/request/node_modules/tough-cookie node_modules/tough-cookie 14 vulnerabilities (8 moderate, 6 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force --- end --- $ package-lock-lint package-lock.json --- stdout --- Checking package-lock.json --- end --- Verifying that tests still pass $ /usr/bin/npm ci --- stderr --- npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'citoid@1.1.1', npm WARN EBADENGINE required: { node: '16' }, npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN deprecated kad-fs@0.0.4: This package is no longer maintained. npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated kad-memstore@0.0.1: This package is no longer maintained. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 --- stdout --- added 682 packages, and audited 683 packages in 9s 86 packages are looking for funding run `npm fund` for details 14 vulnerabilities (8 moderate, 6 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. --- end --- $ /usr/bin/npm test --- stdout --- > citoid@1.1.1 test > npm run lint && mocha ./test/features/unit/* && mocha ./test/features/errors/* && mocha ./test/features/app/* > citoid@1.1.1 lint > eslint --max-warnings 0 --cache . cachedTypes zotero methods ✔ returns false if no base types exist ✔ gets base types - no creators ✔ gets base types - with creators creator types methods ✔ gets creator type ids ✔ returns empty list if no create type ids exist ✔ gets primary creator id from type ✔ gets creator name from id ✔ gets primary creator id from name ✔ determines if creatorType valid for type- true ✔ determines if creatorType valid for type- false item fields methods ✔ determines if id is valid for type- false ✔ determines if id is valid for type- true ✔ determines if creator field is valid for type- true ✔ determines if creator field is valid for type- false ✔ get field id from type and base ✔ get base id from type and field ✔ get item type fields ✔ gets field name from id ✔ gets id from field name lib/Exporter.js functions: validation functions: fixURL: ✔ discards url with no host ✔ adds protocol to url when missing fixWebsiteTitle: ✔ Adds missing website title ✔ Does not add missing website title if itemType is missing ✔ Does not add missing website title if url is relative addIDSToCitation: ✔ cleans script and html out of title stripCitation: ✔ cleans script and html out of title ✔ does not clean doi fixDate: ✔ Contains copyright symbol ✔ Is in brackets for some unfathomable reason ✔ Contains copyright symbol & whitespace ✔ Contains c symbol ✔ sets year only date to year only date ✔ converts American style date to ISO ✔ Unable to parse so leaves as written; season (211ms) ✔ Chooses worldcat publication year ✔ Multilingual date - Spanish - leaves as written ✔ Multilingual date - Russian - leaves as written (47ms) ✔ Normal date ✔ Normal date with ordinal indicator ✔ Correctly sets normal date with ordinal number ✔ Date on the fence: ISO with - notation ✔ Date on the fence; ISO with + notation ✔ Date on the fence; toString output ✔ Date on the fence; ISO with Z notation ✔ Year first date ✔ Partial ISO date no preceeding 0 ✔ Full ISO date no preceeding 0 ✔ Full ISO date no preceeding 0 month or day ✔ Slashes full date ✔ Slashes partial date ✔ Slashes partial date with 0 month - Slashes partial date with 00s ✔ Slashes partial year with 00s ✔ XX partial date ✔ XX partial year ✔ unix timestamp ✔ unix timestamp with space fixDOI: ✔ Correctly gets DOI from full citation ✔ Correctly removes DOI that is not a DOI ✔ Correctly gets DOI when only DOI is present fixISBN: ✔ Correctly hyphenates single ISBN-10 ✔ Correctly handles ISBN-13s that have spaces in them ✔ Correctly extracts two ISBN-10s ✔ Correctly extracts ISBN-13 ✔ Correctly extracts ISBN-10 and ISBN-13 ✔ Correctly handles and normalizes hyphenated ISBN ✔ Correctly handles ISBNs with and without hyphens ✔ Correctly handles multiple ISBN-13s that have spaces in them ✔ Correctly handles out comma separated ISBNs fixISSN: ✔ Correctly ignores None ISSN ✔ Correctly adds valid ISSN ✔ Correctly adds valid ISSN with X ✔ Correctly adds valid ISSN with x ✔ Correctly ignores invalid ISSN without hyphen ✔ Correctly ignores invalid ISSN fixPages: ✔ converts hyphen minus to en dash replaceCreators: ✔ Correctly adds name with firstName and lastName present ✔ Correctly adds names with only lastName or firstName present ✔ Adds names with name field ✔ Doesn't add names with incorrect field name export formats: wikibase: different search term types ✔ url from search, doi from result ✔ doi from search, no url ✔ qid, no url ✔ pmid, no url ✔ pmcid, no url different item types ✔ itemType webpage ✔ itemType book ✔ itemType journalArticle lib/externalAPIs/CrossRefService.js functions: polite config ✔ Gets metadata for doi (207ms) ✔ Doesn't get metadata for invalid doi (116ms) anonymous config ✔ Gets metadata for doi (131ms) ✔ Doesn't get metadata for invalid doi (116ms) open search function ✔ Gets metadata for open search (4290ms) lib/Scraper.js functions: matchIDs function: ✔ gets doi from bePress string ✔ gets doi from bePress Array ✔ gets doi from highwirePress string ✔ gets doi from highwirePress Array ✔ gets doi from dublinCore string ✔ gets doi from dublinCore Array ✔ Returns empty metadata from empty object ✔ Multiple metadata types parsing ✔ should scrape meta tag charset content Tests for Translator.js : translate function on html: ✔ translates bePress metadata from movie file ✔ translates bePress metadata from article file ✔ translates bePress metadata from song file ✔ translates highwirePress metadata from movie file ✔ translates highwirePress metadata from article file ✔ translates highwirePress metadata from song file ✔ translates coins metadata from movie file ✔ translates coins metadata from article file ✔ translates coins metadata from song file ✔ translates dublinCore metadata from movie file ✔ translates dublinCore metadata from article file ✔ translates dublinCore metadata from song file ✔ translates general metadata from movie file ✔ translates general metadata from article file ✔ translates general metadata from song file ✔ translates openGraph metadata from movie file ✔ translates openGraph metadata from article file ✔ translates openGraph metadata from song file translate function on json: ✔ sets right info from journal-article crossRef metadata ✔ sets right info from book-section crossRef metadata ✔ tests every itemType for crossRef translator on every sample crossRef file addItemType function: ✔ sets videoRecording itemType ✔ sets article itemType ✔ sets audioRecording itemType from openGraph ✔ sets itemType webpage if no relevant metadata available check specific results: ✔ sets right info from webpage for general metadata ✔ sets right info from webpage for bepress metadata coins metadata ✔ Correctly adds pages from spage and epage ✔ Correctly fixes en dash in pages fields ✔ Correctly adds date exports.other.addCreators function ✔ Doesn't add empty creators field ✔ Doesn't add creators field if missing itemType - Doesn't add duplicate author names - Doesn't add duplicate author names with nbsp present ✔ Correctly adds name with missing firstname ✔ Correctly adds name with missing lastname ✔ Correctly uses aulast, auinit1 and auinitm ✔ Correctly uses auinit1 and auinitm ✔ Correctly adds corporation names ✔ Does split names in au field crossRef translator unit ✔ Creator translate function adds lists of strings dateParts function ✔ Translates full date ✔ Translates year and day ✔ Translates year only ✔ Fails with object ✔ Fails with list not nested ✔ Works with strings date - Does not work with unexpected input dublinCore translator unit ✔ Creator translate function adds lists of strings ✔ Correctly adds an author string with one word ✔ Correctly adds an author string with two words ✔ Correctly adds an author string with three words general translator unit ✔ Author function adds lists of strings ✔ Correctly adds an author string with one word ✔ Correctly adds an author string with two words ✔ Correctly adds an author string with three words ✔ Does something redonk with Harry Potter author field from worldcat translator utilities: makeTranslator function: ✔ strips leading and trailing whitespace ✔ correctly adds date with fixDate validate function ✔ correctly uses fixLang validate function makePagesTranslator function: ✔ Uses spage and epage ✔ Uses optional pages arg and converts - to en dash makeListTranslator function: ✔ Correctly adds one isbn ✔ Correctly uses isbn validate function ✔ Correctly uses issn validate function ✔ Correctly adds two issn and one eissn ✔ Correctly adds two isbn makeCreatorsTranslator function: ✔ Name as written ✔ Format Last name, first name ✔ Adds two different contributor types 168 passing (6s) 4 pending address restrictions {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2024-04-28T17:36:44.395Z","v":0} {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"e1f60240-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=http%3A%2F%2Flocalhost%3A1970","headers":{"content-length":"0","x-request-id":"e1f60240-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"http://localhost:1970"},"remoteAddress":"127.0.0.1","remotePort":44106},"msg":"http://localhost:1970 is not public, and is disallowed","time":"2024-04-28T17:36:45.159Z","v":0} ✔ http://localhost:1970 (43ms) {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"e1f9abc0-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=http%3A%2F%2F127.0.0.1%3A1970","headers":{"content-length":"0","x-request-id":"e1f9abc0-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"http://127.0.0.1:1970"},"remoteAddress":"127.0.0.1","remotePort":44128},"msg":"http://127.0.0.1:1970 is not public, and is disallowed","time":"2024-04-28T17:36:45.181Z","v":0} ✔ http://127.0.0.1:1970 ✔ non-existing (45ms) {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"e2028560-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=http%3A%2F%2F10.0.0.5%2F","headers":{"content-length":"0","x-request-id":"e2028560-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"http://10.0.0.5/"},"remoteAddress":"127.0.0.1","remotePort":44148},"msg":"http://10.0.0.5/ is not public, and is disallowed","time":"2024-04-28T17:36:45.239Z","v":0} ✔ 10.0.0.5 {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"e203bde0-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=http%3A%2F%2F192.168.1.2","headers":{"content-length":"0","x-request-id":"e203bde0-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"http://192.168.1.2"},"remoteAddress":"127.0.0.1","remotePort":44162},"msg":"http://192.168.1.2 is not public, and is disallowed","time":"2024-04-28T17:36:45.248Z","v":0} ✔ private ip {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/zotero","request_id":"e204cf50-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=https%3A%2F%2Fen.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DInternet_Assigned_Numbers_Authority%26oldid%3D664999436","headers":{"content-length":"0","x-request-id":"e204cf50-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"https://en.wikipedia.org/w/index.php?title=Internet_Assigned_Numbers_Authority&oldid=664999436"},"remoteAddress":"127.0.0.1","remotePort":44166},"msg":"No Zotero response available from request for https://en.wikipedia.org/w/index.php?title=Internet_Assigned_Numbers_Authority&oldid=664999436","time":"2024-04-28T17:36:46.267Z","v":0} ✔ acceptable domain, with scheme (1346ms) {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/zotero","request_id":"e2d25880-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=en.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DInternet_Assigned_Numbers_Authority%26oldid%3D664999436","headers":{"content-length":"0","x-request-id":"e2d25880-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"en.wikipedia.org/w/index.php?title=Internet_Assigned_Numbers_Authority&oldid=664999436"},"remoteAddress":"127.0.0.1","remotePort":44168},"msg":"No Zotero response available from request for https://en.wikipedia.org/w/index.php?title=internet_assigned_numbers_authority&oldid=664999436","time":"2024-04-28T17:36:46.845Z","v":0} ✔ acceptable domain, without scheme (424ms) encoding {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2024-04-28T17:36:47.026Z","v":0} ✔ javascript in format {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/pubmed","request_id":"e3179ee0-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=10.1000%2Ff%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E","headers":{"content-length":"0","x-request-id":"e3179ee0-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"10.1000/f<script>alert(1);</script>"},"remoteAddress":"127.0.0.1","remotePort":44188},"msg":"Unknown pubmed error","time":"2024-04-28T17:36:47.115Z","v":0} ✔ javascript in doi (202ms) ✔ json in format ✔ spaces in fully qualified url (341ms) ✔ spaces in url missing http:// (256ms) errors {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2024-04-28T17:36:47.867Z","v":0} ✔ missing search in query ✔ missing format in query ✔ bad format in query ✔ bad domain ✔ resource has http errors (261ms) ✔ unknown doi (159ms) ✔ doi url with single quote (283ms) {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/pubmed","request_id":"e3dc7580-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=http%3A%2F%2FDOI.org%2F10.1007%2F11926078_68%27","headers":{"content-length":"0","x-request-id":"e3dc7580-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"http://DOI.org/10.1007/11926078_68'"},"remoteAddress":"127.0.0.1","remotePort":43720},"msg":"Unknown pubmed error","time":"2024-04-28T17:36:48.629Z","v":0} {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/pubmed","request_id":"e3dc7580-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=http%3A%2F%2FDOI.org%2F10.1007%2F11926078_68%27","headers":{"content-length":"0","x-request-id":"e3dc7580-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"http://DOI.org/10.1007/11926078_68'"},"remoteAddress":"127.0.0.1","remotePort":43720},"msg":"Unknown pubmed error","time":"2024-04-28T17:36:48.688Z","v":0} ✔ doi url with double quote (260ms) ✔ doi with single quote (204ms) {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/pubmed","request_id":"e43061e0-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=10.1007%2F11926078_68%27","headers":{"content-length":"0","x-request-id":"e43061e0-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"10.1007/11926078_68'"},"remoteAddress":"127.0.0.1","remotePort":43738},"msg":"Unknown pubmed error","time":"2024-04-28T17:36:49.154Z","v":0} ✔ bad pmid (59ms) ✔ bad pmcid (51ms) redirects {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2024-04-28T17:36:49.214Z","v":0} {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/zotero","request_id":"e46358c0-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttp%3A%2F%2Fwww.example.com","headers":{"content-length":"0","x-request-id":"e46358c0-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"https://httpbin.org/redirect-to?url=http://www.example.com"},"remoteAddress":"127.0.0.1","remotePort":43774},"msg":"No Zotero response available from request for http://www.example.com","time":"2024-04-28T17:36:49.257Z","v":0} ✔ redirect supported (75ms) {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"e46e7c50-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttp%3A%2F%2F192.168.1.2","headers":{"content-length":"0","x-request-id":"e46e7c50-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"https://httpbin.org/redirect-to?url=http://192.168.1.2"},"remoteAddress":"127.0.0.1","remotePort":43786},"msg":"http://192.168.1.2 is not public, and is disallowed","time":"2024-04-28T17:36:49.308Z","v":0} ✔ redir-to-private {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"e47002f0-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttp%3A%2F%2F192.168.1.2","headers":{"content-length":"0","x-request-id":"e47002f0-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=http://192.168.1.2"},"remoteAddress":"127.0.0.1","remotePort":43788},"msg":"http://192.168.1.2 is not public, and is disallowed","time":"2024-04-28T17:36:49.323Z","v":0} ✔ redir-to-redir-private {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/zotero","request_id":"e4724ce0-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3D%2Fredirect-to%3Furl%3Dhttp%3A%2F%2Fexample.com","headers":{"content-length":"0","x-request-id":"e4724ce0-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"https://httpbin.org/redirect-to?url=/redirect-to?url=http://example.com"},"remoteAddress":"127.0.0.1","remotePort":43794},"msg":"No Zotero response available from request for http://example.com","time":"2024-04-28T17:36:49.343Z","v":0} ✔ follows relative redirects (74ms) {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"e47e0cb0-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttp%3A%2F%2F192.168.1.2","headers":{"content-length":"0","x-request-id":"e47e0cb0-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=http://192.168.1.2"},"remoteAddress":"127.0.0.1","remotePort":43806},"msg":"http://192.168.1.2 is not public, and is disallowed","time":"2024-04-28T17:36:49.424Z","v":0} ✔ redir-to-redir-to-redir-to-private {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/zotero","request_id":"e4820450-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FZotero","headers":{"content-length":"0","x-request-id":"e4820450-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://en.wikipedia.org/wiki/Zotero"},"remoteAddress":"127.0.0.1","remotePort":43822},"msg":"No Zotero response available from request for https://en.wikipedia.org/wiki/Zotero","time":"2024-04-28T17:36:49.475Z","v":0} ✔ five-redirect-max-by-default-under (220ms) {"name":"citoid","hostname":"73a2de77b615","pid":458,"level":40,"levelPath":"warn/zotero","request_id":"e4a39610-0585-11ef-bdba-3ba73cb2f6c8","request":{"url":"/api?format=mediawiki&search=https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FZotero","headers":{"content-length":"0","x-request-id":"e4a39610-0585-11ef-bdba-3ba73cb2f6c8"},"method":"GET","params":{"0":"/api"},"query":{"format":"mediawiki","search":"https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://en.wikipedia.org/wiki/Zotero"},"remoteAddress":"127.0.0.1","remotePort":43838},"msg":"No Zotero response available from request for https://en.wikipedia.org/wiki/Zotero","time":"2024-04-28T17:36:49.694Z","v":0} ✔ five-redirect-max-by-default-equal (212ms) ✔ five-redirect-max-by-default-over (56ms) 31 passing (6s) express app {"name":"citoid","hostname":"73a2de77b615","pid":469,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2024-04-28T17:36:55.611Z","v":0} ✔ should get robots.txt (38ms) - get landing page ✔ should set CORS headers ✔ should set CSP headers service information {"name":"citoid","hostname":"73a2de77b615","pid":469,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2024-04-28T17:36:56.319Z","v":0} ✔ should get the service name ✔ should get the service version ✔ should redirect to the service home page ✔ should get the service info ✔ should fail to get the service info for invalid endpoint 8 passing (757ms) 1 pending --- end --- {"1095141": {"source": 1095141, "name": "nth-check", "dependency": "nth-check", "title": "Inefficient Regular Expression Complexity in nth-check", "url": "https://github.com/advisories/GHSA-rp65-9cf3-cjxr", "severity": "high", "cwe": ["CWE-1333"], "cvss": {"score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}, "range": "<2.0.1"}} {"1095141": {"source": 1095141, "name": "nth-check", "dependency": "nth-check", "title": "Inefficient Regular Expression Complexity in nth-check", "url": "https://github.com/advisories/GHSA-rp65-9cf3-cjxr", "severity": "high", "cwe": ["CWE-1333"], "cvss": {"score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}, "range": "<2.0.1"}} {"1095141": {"source": 1095141, "name": "nth-check", "dependency": "nth-check", "title": "Inefficient Regular Expression Complexity in nth-check", "url": "https://github.com/advisories/GHSA-rp65-9cf3-cjxr", "severity": "high", "cwe": ["CWE-1333"], "cvss": {"score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}, "range": "<2.0.1"}} $ package-lock-lint package-lock.json --- stdout --- Checking package-lock.json --- end --- [DNM] there are no updates $ git add . --- stdout --- --- end --- $ git commit -F /tmp/tmpx8naq5bx --- stdout --- On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean --- end ---