Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mithril
  4. ›
  5. GMS-2020-382

GMS-2020-382: Prototype Pollution in mithril

September 3, 2020 (updated September 29, 2021)

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. If you are using mithril, upgrade to or later. If you are using mithril, upgrade to or later.

References

  • github.com/advisories/GHSA-c3px-v9c7-m734
  • www.npmjs.com/advisories/1094

Code Behaviors & Features

Detect and mitigate GMS-2020-382 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.7, all versions starting from 2.0.0 before 2.0.2

Fixed versions

  • 1.1.7
  • 2.0.2

Solution

Upgrade to versions 1.1.7, 2.0.2 or above.

Source file

npm/mithril/GMS-2020-382.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:14 +0000.