CVE-2021-25915: Changeset vulnerable to prototype pollution
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.85861%
CWE
Published
5/24/2022
Updated
10/19/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
changeset | npm | >= 0.0.1, < 0.2.5 | 0.2.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
- The vulnerability description explicitly states the apply() function lacks type checking and prototype pollution protections.
- The commit diff shows critical security checks were added to the apply() function in index.js:
- Added 'hasOwnProperty' checks before property traversal
- Added explicit 'proto' key filtering
- The PoC demonstrates exploitation through the apply() function
- The CWE-1321 mapping confirms this is a prototype pollution vulnerability in property assignment logic
- The patch adds prototype pollution tests specifically targeting the apply() function's behavior