#VU70123 Prototype pollution in loader-utils


Published: 2022-12-12

Vulnerability identifier: #VU70123

Vulnerability risk: High

CVSSv3.1: 8.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

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: 3.0.0 - 3.1.3, 2.0.0 - 2.0.2, 1.0.0 - 1.4.0


External links
http://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/parseQuery.js#L11
http://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/parseQuery.js#L47
http://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