{"api_version":"1","generated_at":"2026-04-22T22:50:48+00:00","cve":"CVE-2021-43616","urls":{"html":"https://cve.report/CVE-2021-43616","api":"https://cve.report/api/cve/CVE-2021-43616.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-43616","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-43616"},"summary":{"title":"CVE-2021-43616","description":"** DISPUTED ** The npm ci command in npm 7.x and 8.x through 8.1.3 proceeds with an installation even if dependency information in package-lock.json differs from package.json. This behavior is inconsistent with the documentation, and makes it easier for attackers to install malware that was supposed to have been blocked by an exact version match requirement in package-lock.json. NOTE: The npm team believes this is not a vulnerability. It would require someone to socially engineer package.json which has different dependencies than package-lock.json. That user would have to have file system or write access to change dependencies. The npm team states preventing malicious actors from socially engineering or gaining file system access is outside the scope of the npm CLI.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-11-13 18:15:00","updated_at":"2023-11-07 03:39:00"},"problem_types":["CWE-345"],"metrics":[],"references":[{"url":"https://docs.npmjs.com/cli/v7/commands/npm-ci","name":"https://docs.npmjs.com/cli/v7/commands/npm-ci","refsource":"MISC","tags":[],"title":"npm-ci | npm Docs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXNVFKOF5ZYH5NIRWHKN6O6UBCHDV6FE/","name":"FEDORA-2022-97b214b298","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: nodejs-16.14.0-2.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://medium.com/cider-sec/this-time-we-were-lucky-85c0dcac94a0","name":"https://medium.com/cider-sec/this-time-we-were-lucky-85c0dcac94a0","refsource":"MISC","tags":[],"title":"Our dependencies are under attack, and this time we were lucky… | by Rotem Bar | Cider Security | Nov, 2021 | Medium","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://docs.npmjs.com/cli/v8/commands/npm-ci","name":"https://docs.npmjs.com/cli/v8/commands/npm-ci","refsource":"MISC","tags":[],"title":"npm-ci | npm Docs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/npm/cli/commit/457e0ae61bbc55846f5af44afa4066921923490f","name":"https://github.com/npm/cli/commit/457e0ae61bbc55846f5af44afa4066921923490f","refsource":"CONFIRM","tags":[],"title":"fix(ci): lock file validation · npm/cli@457e0ae · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20211210-0002/","name":"https://security.netapp.com/advisory/ntap-20211210-0002/","refsource":"CONFIRM","tags":[],"title":"CVE-2021-43616 NPM Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/npm/cli/issues/2701","name":"https://github.com/npm/cli/issues/2701","refsource":"MISC","tags":[],"title":"[BUG] `npm ci` succeeds when `package-lock.json` doesn't match `package.json` · Issue #2701 · npm/cli · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/npm/cli/issues/2701#issuecomment-972900511","name":"https://github.com/npm/cli/issues/2701#issuecomment-972900511","refsource":"MISC","tags":[],"title":"[BUG] `npm ci` succeeds when `package-lock.json` doesn't match `package.json` · Issue #2701 · npm/cli · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/npm/cli/issues/2701#issuecomment-979054224","name":"https://github.com/npm/cli/issues/2701#issuecomment-979054224","refsource":"MISC","tags":[],"title":"[BUG] `npm ci` succeeds when `package-lock.json` doesn't match `package.json` · Issue #2701 · npm/cli · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/icatalina/CVE-2021-43616","name":"https://github.com/icatalina/CVE-2021-43616","refsource":"MISC","tags":[],"title":"GitHub - icatalina/CVE-2021-43616: Repo demonstrating CVE-2021-43616 / https://github.com/npm/cli/issues/2701","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NXNVFKOF5ZYH5NIRWHKN6O6UBCHDV6FE/","name":"FEDORA-2022-97b214b298","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: nodejs-16.14.0-2.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-43616","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43616","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"43616","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"43616","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"netapp","cpe5":"next_generation_application_programming_interface","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"43616","vulnerable":"1","versionEndIncluding":"7.24.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"npmjs","cpe5":"npm","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"43616","vulnerable":"1","versionEndIncluding":"8.1.3","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"npmjs","cpe5":"npm","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-43616","qid":"159868","title":"Oracle Enterprise Linux Security Update for nodejs:16 (ELSA-2022-4796)"},{"cve":"CVE-2021-43616","qid":"184890","title":"Debian Security Update for npm (CVE-2021-43616)"},{"cve":"CVE-2021-43616","qid":"240388","title":"Red Hat Update for nodejs:16 (RHSA-2022:4796)"},{"cve":"CVE-2021-43616","qid":"282410","title":"Fedora Security Update for nodejs (FEDORA-2022-97b214b298)"},{"cve":"CVE-2021-43616","qid":"354342","title":"Amazon Linux Security Advisory for nodejs : ALAS2022-2022-214"},{"cve":"CVE-2021-43616","qid":"354446","title":"Amazon Linux Security Advisory for nodejs : ALAS2022-2022-048"},{"cve":"CVE-2021-43616","qid":"354537","title":"Amazon Linux Security Advisory for nodejs : ALAS-2022-214"},{"cve":"CVE-2021-43616","qid":"355273","title":"Amazon Linux Security Advisory for nodejs : ALAS2023-2023-084"},{"cve":"CVE-2021-43616","qid":"376100","title":"NPM Security Update - DO NOT RELEASE"},{"cve":"CVE-2021-43616","qid":"502318","title":"Alpine Linux Security Update for npm"},{"cve":"CVE-2021-43616","qid":"505118","title":"Alpine Linux Security Update for npm"},{"cve":"CVE-2021-43616","qid":"940583","title":"AlmaLinux Security Update for nodejs:16 (ALSA-2022:4796)"},{"cve":"CVE-2021-43616","qid":"960250","title":"Rocky Linux Security Update for nodejs:16 (RLSA-2022:4796)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-43616","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"** DISPUTED ** The npm ci command in npm 7.x and 8.x through 8.1.3 proceeds with an installation even if dependency information in package-lock.json differs from package.json. This behavior is inconsistent with the documentation, and makes it easier for attackers to install malware that was supposed to have been blocked by an exact version match requirement in package-lock.json. NOTE: The npm team believes this is not a vulnerability. It would require someone to socially engineer package.json which has different dependencies than package-lock.json. That user would have to have file system or write access to change dependencies. The npm team states preventing malicious actors from socially engineering or gaining file system access is outside the scope of the npm CLI."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/npm/cli/issues/2701","refsource":"MISC","name":"https://github.com/npm/cli/issues/2701"},{"url":"https://docs.npmjs.com/cli/v7/commands/npm-ci","refsource":"MISC","name":"https://docs.npmjs.com/cli/v7/commands/npm-ci"},{"refsource":"MISC","name":"https://github.com/icatalina/CVE-2021-43616","url":"https://github.com/icatalina/CVE-2021-43616"},{"refsource":"MISC","name":"https://medium.com/cider-sec/this-time-we-were-lucky-85c0dcac94a0","url":"https://medium.com/cider-sec/this-time-we-were-lucky-85c0dcac94a0"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20211210-0002/","url":"https://security.netapp.com/advisory/ntap-20211210-0002/"},{"refsource":"CONFIRM","name":"https://github.com/npm/cli/commit/457e0ae61bbc55846f5af44afa4066921923490f","url":"https://github.com/npm/cli/commit/457e0ae61bbc55846f5af44afa4066921923490f"},{"refsource":"FEDORA","name":"FEDORA-2022-97b214b298","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NXNVFKOF5ZYH5NIRWHKN6O6UBCHDV6FE/"},{"refsource":"MISC","name":"https://docs.npmjs.com/cli/v8/commands/npm-ci","url":"https://docs.npmjs.com/cli/v8/commands/npm-ci"},{"refsource":"MISC","name":"https://github.com/npm/cli/issues/2701#issuecomment-979054224","url":"https://github.com/npm/cli/issues/2701#issuecomment-979054224"},{"refsource":"MISC","name":"https://github.com/npm/cli/issues/2701#issuecomment-972900511","url":"https://github.com/npm/cli/issues/2701#issuecomment-972900511"}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AC:H/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:N","version":"3.1"}}},"nvd":{"publishedDate":"2021-11-13 18:15:00","lastModifiedDate":"2023-11-07 03:39:00","problem_types":["CWE-345"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:npmjs:npm:*:*:*:*:*:*:*:*","versionStartIncluding":"8.0.0","versionEndIncluding":"8.1.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:npmjs:npm:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0.0","versionEndIncluding":"7.24.2","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:netapp:next_generation_application_programming_interface:-:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"43616","Ordinal":"220715","Title":"CVE-2021-43616","CVE":"CVE-2021-43616","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"43616","Ordinal":"1","NoteData":"The npm ci command in npm 7.x and 8.x through 8.1.3 proceeds with an installation even if dependency information in package-lock.json differs from package.json. This behavior is inconsistent with the documentation, and makes it easier for attackers to install malware that was supposed to have been blocked by an exact version match requirement in package-lock.json.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"43616","Ordinal":"2","NoteData":"2021-11-13","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"43616","Ordinal":"3","NoteData":"2021-11-15","Type":"Other","Title":"Modified"}]}}}