CVE-2022-29244
Vulnerability from cvelistv5
Published
2022-06-13 13:40
Modified
2024-08-03 06:17
Severity ?
Summary
npm packing does not respect root-level ignore files in workspaces
References
security-advisories@github.comhttps://github.com/nodejs/node/pull/43210Patch, Third Party Advisory
security-advisories@github.comhttps://github.com/nodejs/node/releases/tag/v16.15.1Release Notes, Third Party Advisory
security-advisories@github.comhttps://github.com/nodejs/node/releases/tag/v17.9.1Release Notes, Third Party Advisory
security-advisories@github.comhttps://github.com/nodejs/node/releases/tag/v18.3.0Release Notes, Third Party Advisory
security-advisories@github.comhttps://github.com/npm/cli/releases/tag/v8.11.0Release Notes, Third Party Advisory
security-advisories@github.comhttps://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52Third Party Advisory
security-advisories@github.comhttps://github.com/npm/cli/tree/latest/workspaces/libnpmpackProduct, Third Party Advisory
security-advisories@github.comhttps://github.com/npm/cli/tree/latest/workspaces/libnpmpublishProduct, Third Party Advisory
security-advisories@github.comhttps://github.com/npm/npm-packlistProduct, Third Party Advisory
security-advisories@github.comhttps://security.netapp.com/advisory/ntap-20220722-0007/Third Party Advisory
af854a3a-2127-422b-91ae-364da2661108https://github.com/nodejs/node/pull/43210Patch, Third Party Advisory
af854a3a-2127-422b-91ae-364da2661108https://github.com/nodejs/node/releases/tag/v16.15.1Release Notes, Third Party Advisory
af854a3a-2127-422b-91ae-364da2661108https://github.com/nodejs/node/releases/tag/v17.9.1Release Notes, Third Party Advisory
af854a3a-2127-422b-91ae-364da2661108https://github.com/nodejs/node/releases/tag/v18.3.0Release Notes, Third Party Advisory
af854a3a-2127-422b-91ae-364da2661108https://github.com/npm/cli/releases/tag/v8.11.0Release Notes, Third Party Advisory
af854a3a-2127-422b-91ae-364da2661108https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52Third Party Advisory
af854a3a-2127-422b-91ae-364da2661108https://github.com/npm/cli/tree/latest/workspaces/libnpmpackProduct, Third Party Advisory
af854a3a-2127-422b-91ae-364da2661108https://github.com/npm/cli/tree/latest/workspaces/libnpmpublishProduct, Third Party Advisory
af854a3a-2127-422b-91ae-364da2661108https://github.com/npm/npm-packlistProduct, Third Party Advisory
af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20220722-0007/Third Party Advisory
Impacted products
Vendor Product Version
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-03T06:17:54.265Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/npm/npm-packlist"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpack"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/nodejs/node/pull/43210"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/npm/cli/releases/tag/v8.11.0"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/nodejs/node/releases/tag/v16.15.1"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/nodejs/node/releases/tag/v17.9.1"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/nodejs/node/releases/tag/v18.3.0"
          },
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "https://security.netapp.com/advisory/ntap-20220722-0007/"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "npm",
          "vendor": "npm",
          "versions": [
            {
              "lessThan": "7.9.0*",
              "status": "affected",
              "version": "7.9.0",
              "versionType": "custom"
            },
            {
              "lessThan": "8.11.0",
              "status": "affected",
              "version": "8.11.0",
              "versionType": "custom"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=\u003cname\u003e`). Anyone who has run `npm pack` or `npm publish` inside a workspace, as of v7.9.0 and v7.13.0 respectively, may be affected and have published files into the npm registry they did not intend to include. Users should upgrade to the latest, patched version of npm v8.11.0, run: npm i -g npm@latest . Node.js versions v16.15.1, v17.19.1, and v18.3.0 include the patched v8.11.0 version of npm."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-200",
              "description": "CWE-200 Information Exposure",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2022-07-22T18:09:17",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "references": [
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/npm/npm-packlist"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpack"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/nodejs/node/pull/43210"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/npm/cli/releases/tag/v8.11.0"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/nodejs/node/releases/tag/v16.15.1"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/nodejs/node/releases/tag/v17.9.1"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/nodejs/node/releases/tag/v18.3.0"
        },
        {
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://security.netapp.com/advisory/ntap-20220722-0007/"
        }
      ],
      "source": {
        "discovery": "UNKNOWN"
      },
      "title": "npm packing does not respect root-level ignore files in workspaces",
      "x_generator": {
        "engine": "Vulnogram 0.0.9"
      },
      "x_legacyV4Record": {
        "CVE_data_meta": {
          "ASSIGNER": "security-advisories@github.com",
          "ID": "CVE-2022-29244",
          "STATE": "PUBLIC",
          "TITLE": "npm packing does not respect root-level ignore files in workspaces"
        },
        "affects": {
          "vendor": {
            "vendor_data": [
              {
                "product": {
                  "product_data": [
                    {
                      "product_name": "npm",
                      "version": {
                        "version_data": [
                          {
                            "version_affected": "\u003e=",
                            "version_name": "7.9.0",
                            "version_value": "7.9.0"
                          },
                          {
                            "version_affected": "\u003c",
                            "version_name": "8.11.0",
                            "version_value": "8.11.0"
                          }
                        ]
                      }
                    }
                  ]
                },
                "vendor_name": "npm"
              }
            ]
          }
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "eng",
              "value": "npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=\u003cname\u003e`). Anyone who has run `npm pack` or `npm publish` inside a workspace, as of v7.9.0 and v7.13.0 respectively, may be affected and have published files into the npm registry they did not intend to include. Users should upgrade to the latest, patched version of npm v8.11.0, run: npm i -g npm@latest . Node.js versions v16.15.1, v17.19.1, and v18.3.0 include the patched v8.11.0 version of npm."
            }
          ]
        },
        "generator": {
          "engine": "Vulnogram 0.0.9"
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "eng",
                  "value": "CWE-200 Information Exposure"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52",
              "refsource": "MISC",
              "url": "https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52"
            },
            {
              "name": "https://github.com/npm/npm-packlist",
              "refsource": "MISC",
              "url": "https://github.com/npm/npm-packlist"
            },
            {
              "name": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish",
              "refsource": "MISC",
              "url": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish"
            },
            {
              "name": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpack",
              "refsource": "MISC",
              "url": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpack"
            },
            {
              "name": "https://github.com/nodejs/node/pull/43210",
              "refsource": "MISC",
              "url": "https://github.com/nodejs/node/pull/43210"
            },
            {
              "name": "https://github.com/npm/cli/releases/tag/v8.11.0",
              "refsource": "MISC",
              "url": "https://github.com/npm/cli/releases/tag/v8.11.0"
            },
            {
              "name": "https://github.com/nodejs/node/releases/tag/v16.15.1",
              "refsource": "MISC",
              "url": "https://github.com/nodejs/node/releases/tag/v16.15.1"
            },
            {
              "name": "https://github.com/nodejs/node/releases/tag/v17.9.1",
              "refsource": "MISC",
              "url": "https://github.com/nodejs/node/releases/tag/v17.9.1"
            },
            {
              "name": "https://github.com/nodejs/node/releases/tag/v18.3.0",
              "refsource": "MISC",
              "url": "https://github.com/nodejs/node/releases/tag/v18.3.0"
            },
            {
              "name": "https://security.netapp.com/advisory/ntap-20220722-0007/",
              "refsource": "CONFIRM",
              "url": "https://security.netapp.com/advisory/ntap-20220722-0007/"
            }
          ]
        },
        "source": {
          "discovery": "UNKNOWN"
        }
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2022-29244",
    "datePublished": "2022-06-13T13:40:27",
    "dateReserved": "2022-04-13T00:00:00",
    "dateUpdated": "2024-08-03T06:17:54.265Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-29244\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2022-06-13T14:15:09.027\",\"lastModified\":\"2024-11-21T06:58:47.650\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=\u003cname\u003e`). Anyone who has run `npm pack` or `npm publish` inside a workspace, as of v7.9.0 and v7.13.0 respectively, may be affected and have published files into the npm registry they did not intend to include. Users should upgrade to the latest, patched version of npm v8.11.0, run: npm i -g npm@latest . Node.js versions v16.15.1, v17.19.1, and v18.3.0 include the patched v8.11.0 version of npm.\"},{\"lang\":\"es\",\"value\":\"npm pack ignora las directivas de exclusi\u00f3n de archivos .gitignore y .npmignore a nivel de root cuando es ejecutado en un espacio de trabajo o con un flag de espacio de trabajo (es decir, \\\"--workspaces\\\", \\\"--workspace=(name)\\\"). Cualquiera que haya ejecutado \\\"npm pack\\\" o \\\"npm publish\\\" dentro de un espacio de trabajo, a partir de v7.9.0 y v7.13.0 respectivamente, puede estar afectado y haber publicado archivos en el registro de npm que no ten\u00eda intenci\u00f3n de incluir. Los usuarios deben actualizar a la \u00faltima versi\u00f3n parcheada de npm v8.11.0, ejecutar: npm i -g npm@latest . Las versiones de Node.js versiones v16.15.1, v17.19.1 y v18.3.0 incluyen la versi\u00f3n parcheada v8.11.0 de npm\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\",\"baseScore\":7.5,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":3.9,\"impactScore\":3.6}],\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:N/AC:L/Au:N/C:P/I:N/A:N\",\"baseScore\":5.0,\"accessVector\":\"NETWORK\",\"accessComplexity\":\"LOW\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"PARTIAL\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"baseSeverity\":\"MEDIUM\",\"exploitabilityScore\":10.0,\"impactScore\":2.9,\"acInsufInfo\":false,\"obtainAllPrivilege\":false,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":false}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-200\"}]},{\"source\":\"nvd@nist.gov\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:npmjs:npm:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"7.9.0\",\"versionEndExcluding\":\"8.11.0\",\"matchCriteriaId\":\"2844387A-FF0C-4C1F-8BFF-BA3785AA6CF6\"}]}]},{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"E7CF3019-975D-40BB-A8A4-894E62BD3797\"}]}]}],\"references\":[{\"url\":\"https://github.com/nodejs/node/pull/43210\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/nodejs/node/releases/tag/v16.15.1\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/nodejs/node/releases/tag/v17.9.1\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/nodejs/node/releases/tag/v18.3.0\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/npm/cli/releases/tag/v8.11.0\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/npm/cli/tree/latest/workspaces/libnpmpack\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Product\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Product\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/npm/npm-packlist\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Product\",\"Third Party Advisory\"]},{\"url\":\"https://security.netapp.com/advisory/ntap-20220722-0007/\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/nodejs/node/pull/43210\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/nodejs/node/releases/tag/v16.15.1\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/nodejs/node/releases/tag/v17.9.1\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/nodejs/node/releases/tag/v18.3.0\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/npm/cli/releases/tag/v8.11.0\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/npm/cli/tree/latest/workspaces/libnpmpack\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/npm/npm-packlist\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\",\"Third Party Advisory\"]},{\"url\":\"https://security.netapp.com/advisory/ntap-20220722-0007/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Third Party Advisory\"]}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.