Prototype Pollution Affecting litespeed.js package, versions <0.3.12


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
2.96% (91st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Prototype Pollution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-LITESPEEDJS-2359250
  • published16 Feb 2022
  • disclosed24 Jan 2022
  • creditAlessio Della Libera of Snyk Research Team

Introduced: 24 Jan 2022

CVE-2021-23682  (opens in a new tab)
CWE-1321  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade litespeed.js to version 0.3.12 or higher.

Overview

litespeed.js is a Lite & fast micro javascript framework that is easy to learn.

Affected versions of this package are vulnerable to Prototype Pollution. When parsing the query string in the getJsonFromUrl function, the key that is set in the result object is not properly sanitized leading to a Prototype Pollution vulnerability.

PoC

  1. add the following query string ?__proto__[polluted]=yes

  2. open the browser developer console. The property polluted has value yes

CVSS Scores

version 3.1