{
    "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": ">=",
                                            "version_name": "7.9.0",
                                            "version_value": "7.9.0"
                                        },
                                        {
                                            "version_affected": "<",
                                            "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=<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."
            }
        ]
    },
    "generator": {
        "engine": "Vulnogram 0.0.9"
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-200 Information Exposure"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "url": "https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52",
                "name": "https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/npm/npm-packlist",
                "name": "https://github.com/npm/npm-packlist"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish",
                "name": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpack",
                "name": "https://github.com/npm/cli/tree/latest/workspaces/libnpmpack"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/nodejs/node/pull/43210",
                "name": "https://github.com/nodejs/node/pull/43210"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/npm/cli/releases/tag/v8.11.0",
                "name": "https://github.com/npm/cli/releases/tag/v8.11.0"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/nodejs/node/releases/tag/v16.15.1",
                "name": "https://github.com/nodejs/node/releases/tag/v16.15.1"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/nodejs/node/releases/tag/v17.9.1",
                "name": "https://github.com/nodejs/node/releases/tag/v17.9.1"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/nodejs/node/releases/tag/v18.3.0",
                "name": "https://github.com/nodejs/node/releases/tag/v18.3.0"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://security.netapp.com/advisory/ntap-20220722-0007/",
                "url": "https://security.netapp.com/advisory/ntap-20220722-0007/"
            }
        ]
    },
    "source": {
        "discovery": "UNKNOWN"
    }
}