CVE-2021-43616: 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 differ
Noroxi assessment
Priority: Plan (action score 40/100)
- Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 2.6% (FIRST EPSS); higher than 85.5% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: nodejs (AlmaLinux:8) 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4; nodejs-devel (AlmaLinux:8) 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4; nodejs-docs (AlmaLinux:8) 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Add it to your regular patch cycle. Upgrade to nodejs (AlmaLinux:8) 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4; nodejs-devel (AlmaLinux:8) 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4; nodejs-docs (AlmaLinux:8) 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Nov 13, 2021
- Updated
- Jun 17, 2026
- EPSS
- 2.6% · 85th percentile
- CWE
- CWE-345
Report tools
Action score
40
Plan
Add it to your regular patch cycle.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.6%
CNA vs NVD score
- NVD
- 9.8
- CNA · mitre
- 9.0
- 0.8 point gap
CVSS:3.1/AC:H/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:N
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| npmjs | npm | cpe:2.3:a:npmjs:npm |
| netapp | next generation application programming interface | cpe:2.3:a:netapp:next_generation_application_programming_interface |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora35
- netapp next generation application programming interfaceall versions
- npmjs npm7.0.0 and later · up to 7.24.2 inclusive
- npmjs npm8.0.0 and later · up to 8.1.3 inclusive
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | nodejs | before 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 |
| AlmaLinux:8 | nodejs-devel | before 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 |
| AlmaLinux:8 | nodejs-docs | before 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 |
| AlmaLinux:8 | nodejs-full-i18n | before 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 |
| AlmaLinux:8 | nodejs-nodemon | before 2.0.15-1.module_el8.6.0+2904+f21ad6f4 | 2.0.15-1.module_el8.6.0+2904+f21ad6f4 |
| AlmaLinux:8 | nodejs-nodemon | before 2.0.15-1.module_el8.5.0+2605+45d748af | 2.0.15-1.module_el8.5.0+2605+45d748af |
| AlmaLinux:8 | nodejs-packaging | before 25-1.module_el8.5.0+246+05401605 | 25-1.module_el8.5.0+246+05401605 |
| AlmaLinux:8 | nodejs-packaging | before 25-1.module_el8.5.0+2605+45d748af | 25-1.module_el8.5.0+2605+45d748af |
| AlmaLinux:8 | npm | before 1:8.3.1-1.16.14.0.4.module_el8.6.0+2904+f21ad6f4 | 1:8.3.1-1.16.14.0.4.module_el8.6.0+2904+f21ad6f4 |
| Alpine:v3.16 | npm | from 7.0.0 · before 8.1.4-r0 | 8.1.4-r0 |
| Debian:12 | npm | before 8.4.1~ds-1 | 8.4.1~ds-1 |
| Red Hat:enterprise_linux:8::appstream | nodejs | before 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 |
| Red Hat:enterprise_linux:8::appstream | nodejs-debuginfo | before 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 |
| Red Hat:enterprise_linux:8::appstream | nodejs-debugsource | before 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 |
| Red Hat:enterprise_linux:8::appstream | nodejs-devel | before 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 |
| Red Hat:enterprise_linux:8::appstream | nodejs-docs | before 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 |
| Red Hat:enterprise_linux:8::appstream | nodejs-full-i18n | before 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 |
| Red Hat:enterprise_linux:8::appstream | nodejs-nodemon | before 0:2.0.15-1.module+el8.6.0+15294+54b291d2 | 0:2.0.15-1.module+el8.6.0+15294+54b291d2 |
| Red Hat:enterprise_linux:8::appstream | nodejs-packaging | before 0:25-1.module+el8.5.0+10992+fac5fe06 | 0:25-1.module+el8.5.0+10992+fac5fe06 |
| Red Hat:enterprise_linux:8::appstream | npm | before 1:8.3.1-1.16.14.0.4.module+el8.6.0+15294+54b291d2 | 1:8.3.1-1.16.14.0.4.module+el8.6.0+15294+54b291d2 |
| Rocky Linux:8 | nodejs | before 1:16.14.0-4.module+el8.6.0+978+59f26232 | 1:16.14.0-4.module+el8.6.0+978+59f26232 |
| Rocky Linux:8 | nodejs-nodemon | before 0:2.0.15-1.module+el8.5.0+721+4c107270 | 0:2.0.15-1.module+el8.5.0+721+4c107270 |
| Rocky Linux:8 | nodejs-packaging | before 0:25-1.module+el8.5.0+702+221f14e6 | 0:25-1.module+el8.5.0+702+221f14e6 |
| Rocky Linux:8 | nodejs-packaging | before 0:25-1.module+el8.6.0+1046+80feca58 | 0:25-1.module+el8.6.0+1046+80feca58 |
Same product
npmjs: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-16776Unauthorized File Access in npm CLI before before version 6.13.333Monitor
- CVE-2022-29244npm packing does not respect root-level ignore files in workspaces31Monitor
- CVE-2018-7408An issue was discovered in an npm 5.7.0 2018-02-21 pre-release (marked as "next: 5.7.0" and therefore automatically installed by an "npm upg31Monitor
Published before and after this one in the same product
- ← EarlierCVE-2019-16777Dec 12, 2019 · Arbitrary File Overwrite in npm CLI27Monitor
- ← EarlierCVE-2020-15095Jul 7, 2020 · Sensitive information exposure through logs in npm cli17Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:nodejs | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-devel | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-docs | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-full-i18n | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-nodemon | 2.0.15-1.module_el8.6.0+2904+f21ad6f4 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-packaging | 25-1.module_el8.5.0+246+05401605 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:npm | 1:8.3.1-1.16.14.0.4.module_el8.6.0+2904+f21ad6f4 · AlmaLinux:8 | Package registry (OSV) |
| alpine:npm | 8.1.4-r0 · Alpine:v3.16 | Package registry (OSV) |
| debian:npm | 8.4.1~ds-1 · Debian:12 | Package registry (OSV) |
| red hat:nodejs | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-debuginfo | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-debugsource | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-devel | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-docs | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-full-i18n | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-nodemon | 0:2.0.15-1.module+el8.6.0+15294+54b291d2 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-packaging | 0:25-1.module+el8.5.0+10992+fac5fe06 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:npm | 1:8.3.1-1.16.14.0.4.module+el8.6.0+15294+54b291d2 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| rocky linux:nodejs | 1:16.14.0-4.module+el8.6.0+978+59f26232 · Rocky Linux:8 | Package registry (OSV) |
| rocky linux:nodejs-nodemon | 0:2.0.15-1.module+el8.5.0+721+4c107270 · Rocky Linux:8 | Package registry (OSV) |
| rocky linux:nodejs-packaging | 0:25-1.module+el8.6.0+1046+80feca58 · Rocky Linux:8 | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Proof-of-concept repository on GitHub ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:3 | 2021-11-15 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+1 d
- TodayNov 10, 2026+1823 d
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0399 · Jun 2, 2022(RedHat Güvenlik Güncellemesi)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-345 · Insufficient Verification of Data AuthenticityCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- JSON Hijacking (aka JavaScript Hijacking)CAPEC-111likelihood: High · High
- Cache PoisoningCAPEC-141likelihood: High · High
- DNS Cache PoisoningCAPEC-142likelihood: High · High
- Content SpoofingCAPEC-148likelihood: Medium · Medium
- Spoofing of UDDI/ebXML MessagesCAPEC-218Medium
- Application API Message Manipulation via Man-in-the-MiddleCAPEC-384Low
- Transaction or Event Tampering via Application API ManipulationCAPEC-385Medium
- Application API Navigation RemappingCAPEC-386Medium
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- docs.npmjs.com/cli/v8/commands/npm-ci
- github.com/icatalina/CVE-2021-43616
- github.com/npm/cli/commit/457e0ae61bbc55846f5af44afa4066921923490f
- github.com/npm/cli/issues/2701#issuecomment-972900511
- github.com/npm/cli/issues/2701#issuecomment-979054224
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXNVFKOF5ZYH5NIRWHKN6O6UBCHDV6FE/
- security.netapp.com/advisory/ntap-20211210-0002/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.