BREW-NODE-CVE-2022-29244 (CVE-2022-29244)
Vulnerability from osv_homebrew – Published: 2026-08-13 17:18 – Updated: 2026-09-20 10:56 – Source websitenpm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. --workspaces, --workspace=<name>). 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.
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"resource": "npm",
"resource_purl": "pkg:npm/npm@11.19.1",
"upstream_fixed_in": "8.11.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "node",
"purl": "pkg:brew/node"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "26.7.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "git",
"upstream_evidence": [
{
"ecosystem": "GIT",
"key": "https://github.com/nodejs/node",
"name": "https://github.com/nodejs/node",
"strategy": "git",
"subject_version": "26.9.0"
},
{
"ecosystem": "npm",
"key": "pkg:npm/npm@11.19.1",
"name": "npm",
"resource": "npm",
"strategy": "registry",
"subject_version": "11.19.1"
}
]
},
"details": "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.",
"id": "BREW-node-CVE-2022-29244",
"modified": "2026-09-20T10:56:09Z",
"published": "2026-08-13T17:18:40Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/nodejs/node/releases/tag/v16.15.1"
},
{
"type": "WEB",
"url": "https://github.com/nodejs/node/releases/tag/v17.9.1"
},
{
"type": "WEB",
"url": "https://github.com/nodejs/node/releases/tag/v18.3.0"
},
{
"type": "WEB",
"url": "https://github.com/npm/cli/releases/tag/v8.11.0"
},
{
"type": "WEB",
"url": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpack"
},
{
"type": "WEB",
"url": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish"
},
{
"type": "ADVISORY",
"url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29244.json"
},
{
"type": "ADVISORY",
"url": "https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-29244"
},
{
"type": "ADVISORY",
"url": "https://security.netapp.com/advisory/ntap-20220722-0007/"
},
{
"type": "FIX",
"url": "https://github.com/nodejs/node/pull/43210"
},
{
"type": "PACKAGE",
"url": "https://github.com/npm/npm-packlist"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
],
"summary": "npm packing does not respect root-level ignore files in workspaces",
"upstream": [
"CVE-2022-29244",
"GHSA-hj9c-8jmm-8c52"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.