#VU70123 Prototype pollution in loader-utils - CVE-2022-37601


Vulnerability identifier: #VU70123

Vulnerability risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2022-37601

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
loader-utils
Web applications / JS libraries

Vendor: webpack

Description

The disclosed vulnerability allows a remote attacker to perform prototype pollution attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data within the parseQuery() function in parseQuery.js. A remote attacker can inject and execute arbitrary JavaScript code.


Mitigation
Install update from vendor's website.

Vulnerable software versions

loader-utils: 1.0.0 - 1.4.0, 2.0.0 - 2.0.2, 3.0.0 - 3.1.3


External links
https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/parseQuery.js#L11
https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/parseQuery.js#L47
https://github.com/webpack/loader-utils/issues/212


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability