Miggo Logo

CVE-2020-28478: Prototype pollution in gsap

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.69287%
Published
1/20/2021
Updated
9/12/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
gsapnpm< 3.6.03.6.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

T**r* is * prototyp* pollution vuln*r**ility in *s*p w*i** *****ts *ll v*rsions ***or* *.*.*.

Reasoning

T** vuln*r**ility st*ms *rom improp*r input v*li**tion in o*j**t m*r*in* lo*i*. T** *V* **s*ription *n* Snyk Po* **monstr*t* prototyp* pollution vi* *s*p.*on*i*() w*i** us*s ***p m*r*in*. T** _m*r*****p *un*tion s*own in t** *s*p-*or*.js *o** it*r*t*