{"api_version":"1","generated_at":"2026-07-23T09:46:37+00:00","cve":"CVE-2022-0841","urls":{"html":"https://cve.report/CVE-2022-0841","api":"https://cve.report/api/cve/CVE-2022-0841.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-0841","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-0841"},"summary":{"title":"CVE-2022-0841","description":"OS Command Injection in GitHub repository ljharb/npm-lockfile in v2.0.3 and v2.0.4.","state":"PUBLIC","assigner":"security@huntr.dev","published_at":"2022-03-03 16:15:00","updated_at":"2022-03-09 21:44:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"https://huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1","name":"https://huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1","refsource":"CONFIRM","tags":[],"title":"OS Command Injection  vulnerability found in npm-lockfile","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8","name":"https://github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8","refsource":"MISC","tags":[],"title":"[Fix] reject invalid `only` values · ljharb/npm-lockfile@bfdb848 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-0841","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0841","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"841","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"npm-lockfile_project","cpe5":"npm-lockfile","cpe6":"2.0.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"841","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"npm-lockfile_project","cpe5":"npm-lockfile","cpe6":"2.0.4","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@huntr.dev","ID":"CVE-2022-0841","STATE":"PUBLIC","TITLE":"OS Command Injection in ljharb/npm-lockfile"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"ljharb/npm-lockfile","version":{"version_data":[{"version_affected":"=","version_value":"2.0.3"},{"version_affected":"=","version_value":"2.0.4"}]}}]},"vendor_name":"ljharb"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"OS Command Injection in GitHub repository ljharb/npm-lockfile in v2.0.3 and v2.0.4."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"ADJACENT","availabilityImpact":"NONE","baseScore":3.8,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.0/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","version":"3.0"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-78 Improper Neutralization of Special Elements used in an OS Command"}]}]},"references":{"reference_data":[{"name":"https://huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1","refsource":"CONFIRM","url":"https://huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1"},{"name":"https://github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8","refsource":"MISC","url":"https://github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8"}]},"source":{"advisory":"4f806dc9-2ecd-4e79-997e-5292f1bea9f1","discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2022-03-03 16:15:00","lastModifiedDate":"2022-03-09 21:44:00","problem_types":["CWE-78"],"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:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":10},"severity":"HIGH","exploitabilityScore":10,"impactScore":10,"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:npm-lockfile_project:npm-lockfile:2.0.3:*:*:*:*:node.js:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:npm-lockfile_project:npm-lockfile:2.0.4:*:*:*:*:node.js:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}