Miggo Logo

GHSA-pjwm-rvh2-c87w:
Embedded malware in ua-parser-js

8.8

CVSS Score
3.1

Basic Information

CVE ID
-
EPSS Score
-
Published
10/22/2021
Updated
7/28/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
ua-parser-jsnpm= 0.7.290.7.30
ua-parser-jsnpm= 0.8.00.8.1
ua-parser-jsnpm= 1.0.01.0.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from malicious code embedded in specific compromised versions (0.7.29, 0.8.0, 1.0.0) of the package, but no specific vulnerable functions are explicitly identified in the provided data. The CWEs (829 and 912) indicate inclusion of untrusted/hidden functionality, but the advisory and linked resources do not disclose technical details about the malicious functions/paths. Without access to the actual malicious code changes (via commit diffs or patch details), we cannot confidently identify specific vulnerable functions. The compromise appears to involve unauthorized code injection at the package level rather than exploitation of pre-existing functions.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** npm p**k*** `u*-p*rs*r-js` *** t*r** v*rsions pu*lis*** wit* m*li*ious *o**. Us*rs o* *****t** v*rsions (*.*.**, *.*.*, *.*.*) s*oul* up*r*** *s soon *s possi*l* *n* ****k t**ir syst*ms *or suspi*ious **tivity. S** [t*is issu*](*ttps://*it*u*.*om

Reasoning

T** vuln*r**ility st*ms *rom m*li*ious *o** *m****** in sp**i*i* *ompromis** v*rsions (*.*.**, *.*.*, *.*.*) o* t** p**k***, *ut no sp**i*i* vuln*r**l* *un*tions *r* *xpli*itly i**nti*i** in t** provi*** **t*. T** *W*s (*** *n* ***) in*i**t* in*lusio