CVE-2021-26505: MrSwitch hello.js vulnerable to prototype pollution
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.78559%
CWE
Published
8/11/2023
Updated
11/9/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 |
|---|---|---|---|
| hellojs | npm | < 1.18.8 | 1.18.8 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
- The vulnerability documentation explicitly names hello.utils.extend as the entry point
- The GitHub issue #634 shows vulnerable code patterns in this function's recursive merge logic
- The commit fix adds prototype pollution guards (proto/constructor checks) directly in this function
- The CVE description confirms exploitation occurs via this utility function
- The function's purpose (deep object merging) matches classic prototype pollution patterns when unsafe recursion is used