{
  "schema_version": "1.4.0",
  "id": "GHSA-hxxf-q3w9-4xgw",
  "modified": "2021-09-14T17:35:41Z",
  "published": "2018-07-12T19:52:02Z",
  "aliases": [],
  "summary": "Malicious Package in eslint-scope",
  "details": "Version 3.7.2 of `eslint-scope` was published without authorization and was found to contain malicious code. This code would read the users `.npmrc` file and send any found authentication tokens to 2 remote servers.\n\n\n## Recommendation\n\nThe best course of action if you found this package installed in your environment is to revoke all your npm tokens. You can find instructions on how to do that here. https://docs.npmjs.com/getting-started/working_with_tokens#how-to-revoke-tokens",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "eslint-scope"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "3.7.2"
            },
            {
              "fixed": "3.7.3"
            }
          ]
        }
      ],
      "versions": [
        "3.7.2"
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "eslint-config-eslint"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "5.0.2"
            },
            {
              "fixed": "6.0.0"
            }
          ]
        }
      ],
      "versions": [
        "5.0.2"
      ]
    }
  ],
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/eslint/eslint-scope/issues/39"
    },
    {
      "type": "WEB",
      "url": "https://eslint.org/blog/2018/07/postmortem-for-malicious-package-publishes"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-hxxf-q3w9-4xgw"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/eslint/eslint-scope"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JS-ESLINTSCOPE-11120"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/673"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-506"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:41:33Z",
    "nvd_published_at": null
  }
}