Advisory

GHSA-c3px-v9c7-m734

Also known as: None

Summary

Prototype Pollution in mithril

Details

Affected versions of mithrilare 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-03 19:04 UTC
Modified
2020-08-31 18:47 UTC

Affected packages and fixes

mithril

npm · All systems

Affected

  • introduced 0, fixed 1.1.7 (semver)

Fixed versions

1.1.7

Fix

mithril

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.0.2 (semver)

Fixed versions

2.0.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences