ditesh / node-poplib

POP3 client library for Node.js
MIT License
128 stars 44 forks source link

[`npm audit`][Vulnerability] poplib>optimist>minimist *critical* security vulnerability #39

Open stagefright5 opened 1 year ago

stagefright5 commented 1 year ago

When we ran npm audit --json for my project which has poplib as one of its dependencies, we got the following advisory. Please note that the severity is critical. Any help would be really helpful.

"advisories": {
    "1067342": {
      "findings": [
        {
          "version": "0.0.10",
          "paths": [
            "poplib>optimist>minimist"
          ]
        }
      ],
      "metadata": null,
      "vulnerable_versions": "<1.2.6",
      "module_name": "minimist",
      "severity": "critical",
      "github_advisory_id": "GHSA-xvch-5gv4-984h",
      "cves": [
        "CVE-2021-44906"
      ],
      "access": "public",
      "patched_versions": ">=1.2.6",
      "cvss": {
        "score": 9.8,
        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
      },
      "updated": "2022-04-04T21:39:39.000Z",
      "recommendation": "Upgrade to version 1.2.6 or later",
      "cwe": [
        "CWE-1321"
      ],
      "found_by": null,
      "deleted": null,
      "id": 1067342,
      "references": "- https://nvd.nist.gov/vuln/detail/CVE-2021-44906\n- https://github.com/substack/minimist/issues/164\n- https://github.com/substack/minimist/blob/master/index.js#L69\n- https://snyk.io/vuln/SNYK-JS-MINIMIST-559764\n- https://stackoverflow.com/questions/8588563/adding-custom-properties-to-a-function/20278068#20278068\n- https://github.com/Marynk/JavaScript-vulnerability-detection/blob/main/minimist%20PoC.zip\n- https://github.com/advisories/GHSA-xvch-5gv4-984h",
      "created": "2022-03-18T00:01:09.000Z",
      "reported_by": null,
      "title": "Prototype Pollution in minimist",
      "npm_advisory_id": null,
      "overview": "Minimist <=1.2.5 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).",
      "url": "https://github.com/advisories/GHSA-xvch-5gv4-984h"
    },
"1070255": {
      "findings": [
        {
          "version": "0.0.10",
          "paths": [
            "poplib>optimist>minimist"
          ]
        }
      ],
      "metadata": null,
      "vulnerable_versions": "<0.2.1",
      "module_name": "minimist",
      "severity": "moderate",
      "github_advisory_id": "GHSA-vh95-rmgr-6w4m",
      "cves": [
        "CVE-2020-7598"
      ],
      "access": "public",
      "patched_versions": ">=0.2.1",
      "cvss": {
        "score": 5.6,
        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
      },
      "updated": "2022-04-26T21:01:40.000Z",
      "recommendation": "Upgrade to version 0.2.1 or later",
      "cwe": [
        "CWE-1321"
      ],
      "found_by": null,
      "deleted": null,
      "id": 1070255,
      "references": "- https://nvd.nist.gov/vuln/detail/CVE-2020-7598\n- https://github.com/substack/minimist/commit/38a4d1caead72ef99e824bb420a2528eec03d9ab\n- https://github.com/substack/minimist/commit/63e7ed05aa4b1889ec2f3b196426db4500cbda94\n- https://snyk.io/vuln/SNYK-JS-MINIMIST-559764\n- http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00024.html\n- https://github.com/substack/minimist/commit/4cf1354839cb972e38496d35e12f806eea92c11f#diff-a1e0ee62c91705696ddb71aa30ad4f95\n- https://www.npmjs.com/advisories/1179\n- https://github.com/advisories/GHSA-vh95-rmgr-6w4m",
      "created": "2020-04-03T21:48:32.000Z",
      "reported_by": null,
      "title": "Prototype Pollution in minimist",
      "npm_advisory_id": null,
      "overview": "Affected versions of `minimist` are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype of `Object`, causing the addition or modification of an existing property that will exist on all objects.  \nParsing the argument `--__proto__.y=Polluted` adds a `y` property with value `Polluted` to all objects. The argument `--__proto__=Polluted` raises and uncaught error and crashes the application.  \nThis is exploitable if attackers have control over the arguments being passed to `minimist`.\n\n\n\n## Recommendation\n\nUpgrade to versions 0.2.1, 1.2.3 or later.",
      "url": "https://github.com/advisories/GHSA-vh95-rmgr-6w4m"
    }
}