Skip to content
Heist/ feed
Back to feed
High

npm — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-29244

npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=`). 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.

Products
npm
Affected versions
1.2.18~dfsg-3, 1.3.10~dfsg-1, 1.4.21+ds-2, 11.16.0+ds2-4, 3.5.2-0ubuntu4, 3.5.2-0ubuntu4.1.16.04.1~esm1, 3.5.2-0ubuntu4.1.18.04.1~esm1, 5.8.0+ds6-4, 6.14.4+ds-1ubuntu2, 7.24.2+ds-1, 7.24.2+ds-2, 7.5.2+ds-2, 8.3.0~ds-1, 8.3.0~ds-2, 8.3.2~ds-1, 8.5.0~ds-1, 8.5.1~ds-1, 9.2.0~ds1-1, 9.2.0~ds1-2, 9.2.0~ds1-3, 9.2.0~ds2-2, 9.2.0~ds3-1
Fixed versions
Not specified
CVEs
CVE-2022-29244
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:01 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-29244

core-osv · Original source

Published 13 Jun 2022, 14:15 UTC

npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=`). 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.

osv:UBUNTU-CVE-2022-29244

npm

Fixed versions: Not specified

npm

Fixed versions: Not specified

npm

Fixed versions: Not specified

npm

Fixed versions: Not specified

npm

Fixed versions: Not specified

npm

Fixed versions: Not specified

npm

Fixed versions: Not specified

npm

Fixed versions: Not specified

npm

Fixed versions: Not specified

Complete source record
{
  "id": "a8e94514ea964d9563a32e77362d0ebf61e63213a082dff024f827d425cc12c9",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-29244",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-29244",
    "summary": "npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=`). 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.",
    "evidence": "osv:UBUNTU-CVE-2022-29244",
    "products": [
      {
        "name": {
          "value": "npm",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.18~dfsg-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.3.10~dfsg-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "npm",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.21+ds-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.5.2-0ubuntu4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.5.2-0ubuntu4.1.16.04.1~esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "npm",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.5.2-0ubuntu4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.5.2-0ubuntu4.1.18.04.1~esm1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "npm",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.8.0+ds6-4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.14.4+ds-1ubuntu2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "npm",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.5.2+ds-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "7.24.2+ds-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "7.24.2+ds-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.3.0~ds-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.3.0~ds-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.3.2~ds-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.5.0~ds-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.5.1~ds-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "npm",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "9.2.0~ds1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "9.2.0~ds1-2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "npm",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "9.2.0~ds1-3",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "npm",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "9.2.0~ds3-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "11.16.0+ds2-4",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "npm",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "9.2.0~ds1-3",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "9.2.0~ds2-2",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "9.2.0~ds3-1",
            "evidence": "/affected/8/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2022-29244",
      "aliases": [
        "UBUNTU-CVE-2022-29244"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "npm",
            "purl": "pkg:deb/ubuntu/npm?arch=source&distro=trusty",
            "ecosystem": "Ubuntu:14.04:LTS"
          },
          "versions": [
            "1.2.18~dfsg-3",
            "1.3.10~dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "npm",
                "binary_version": "1.3.10~dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "npm",
            "purl": "pkg:deb/ubuntu/npm?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "1.4.21+ds-2",
            "3.5.2-0ubuntu4",
            "3.5.2-0ubuntu4.1.16.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "npm",
                "binary_version": "3.5.2-0ubuntu4.1.16.04.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "npm",
            "purl": "pkg:deb/ubuntu/npm?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "3.5.2-0ubuntu4",
            "3.5.2-0ubuntu4.1.18.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "npm",
                "binary_version": "3.5.2-0ubuntu4.1.18.04.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "npm",
            "purl": "pkg:deb/ubuntu/npm?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "5.8.0+ds6-4",
            "6.14.4+ds-1ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "npm",
                "binary_version": "6.14.4+ds-1ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "npm",
            "purl": "pkg:deb/ubuntu/npm?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "7.5.2+ds-2",
            "7.24.2+ds-1",
            "7.24.2+ds-2",
            "8.3.0~ds-1",
            "8.3.0~ds-2",
            "8.3.2~ds-1",
            "8.5.0~ds-1",
            "8.5.1~ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "npm",
                "binary_version": "8.5.1~ds-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "npm",
            "purl": "pkg:deb/ubuntu/npm?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "9.2.0~ds1-1",
            "9.2.0~ds1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "npm",
                "binary_version": "9.2.0~ds1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "npm",
            "purl": "pkg:deb/ubuntu/npm?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "9.2.0~ds1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "npm",
                "binary_version": "9.2.0~ds1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "npm",
            "purl": "pkg:deb/ubuntu/npm?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "9.2.0~ds3-1",
            "11.16.0+ds2-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "npm",
                "binary_version": "11.16.0+ds2-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "npm",
            "purl": "pkg:deb/ubuntu/npm?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "9.2.0~ds1-3",
            "9.2.0~ds2-2",
            "9.2.0~ds3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "npm",
                "binary_version": "9.2.0~ds3-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:21.804095657Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-29244"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-29244",
        "https://github.com/nodejs/node/pull/43210",
        "https://github.com/nodejs/node/releases/tag/v18.3.0",
        "https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52",
        "https://github.com/npm/cli/tree/latest/workspaces/libnpmpack",
        "https://github.com/nodejs/node/releases/tag/v17.9.1",
        "https://github.com/npm/npm-packlist",
        "https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish",
        "https://github.com/npm/cli/releases/tag/v8.11.0",
        "https://github.com/nodejs/node/releases/tag/v16.15.1",
        "https://www.cve.org/CVERecord?id=CVE-2022-29244"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-29244",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355426,
  "published_at": "2022-06-13T14:15:00+00:00"
}