CVE-2022-25862:
Prototype Pollution in sds
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.37852%
CWE
Published
5/14/2022
Updated
2/2/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
sds | npm | <= 4.4.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the set function's incomplete validation of keypaths. Though it explicitly blocks 'proto' (the fix for CVE-2020-7618), it doesn't account for alternative prototype pollution vectors like 'constructor.prototype'. The recursive property creation logic (lines 23-34 in the provided set.js) combined with the lack of validation for prototype chain manipulation allows attackers to inject properties into Object.prototype. This matches the CWE-1321 pattern of improper prototype attribute control and aligns with the advisory's description of an incomplete fix for a previous prototype pollution vulnerability.