CVE-2021-20086: Prototype Pollution in jquery-bbq
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.62312%
CWE
Published
5/24/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
jquery-bbq | npm | <= 1.2.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the $.deparam function's handling of nested parameter keys. The code splits keys using bracket notation (e.g., 'a[b][c]') and recursively builds object structures. When processing keys like 'proto[polluted]' or 'constructor[prototype][polluted]', it improperly assigns values to Object.prototype due to lack of prototype chain validation. The provided PoC and code analysis from BlackFan's repository confirm this vector. The function's role in parsing untrusted URL parameters makes it the clear entry point for prototype pollution.