CVE-2020-28478: Prototype pollution in gsap
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.69287%
CWE
Published
1/20/2021
Updated
9/12/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:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
gsap | npm | < 3.6.0 | 3.6.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper input validation in object merging logic. The CVE description and Snyk PoC demonstrate prototype pollution via gsap.config() which uses deep merging. The _mergeDeep function shown in the gsap-core.js code iterates through object properties without blocking prototype-pollution vectors in versions <3.6.0. The 3.6.0 release notes mention adding protections against forbidden keys (proto/constructor/prototype), confirming this was the fix path. The function's purpose (deep merging configuration objects) and the vulnerability pattern match classic prototype pollution vectors in recursive merge implementations.