GitHub Advisoryadvisory · npm

GHSA-c3px-v9c7-m734 Prototype Pollution in mithril

HIGH Published 2020-09-03 Modified 2020-08-31 Official page ↗
Ecosystem
npm
Packages
mithril
Severity
High
Weaknesses
CWE-1321
Reviewed
2020-08-31

Affected packages

• npm mithril: < 1.1.7 → fixed in 1.1.7 • npm mithril: >= 2.0.0, < 2.0.2 → fixed in 2.0.2

Description

Affected versions of `mithril`are vulnerable to prototype pollution. The function `parseQueryString` may allow a malicious user to modify the prototype of `Object`, causing the addition or modification of an existing property that will exist on all objects. A payload such as `__proto__%5BtoString%5D=123` in the query string would change the `toString()` function to `123`. Recommendation If you are using mithril 2.x, upgrade to version 2.0.2 or later. If you are using mithril 1.x, upgrade to version 1.1.7 or later.

Related

Weakness · CWE (1)

  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness

References