{"id":"GHSA-c3px-v9c7-m734","aliases":["GHSA-c3px-v9c7-m734"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution in mithril","summary":"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`.\n\n\n\n## Recommendation\n\nIf you are using mithril 2.x, upgrade to version 2.0.2 or later.\nIf you are using mithril 1.x, upgrade to version 1.1.7 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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`.\n\n\n\n## Recommendation\n\nIf you are using mithril 2.x, upgrade to version 2.0.2 or later.\nIf you are using mithril 1.x, upgrade to version 1.1.7 or later.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T19:04:39.000Z","modified":"2020-08-31T18:47:02.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.7"}],"ecosystem":"npm","package":"mithril","purl":"pkg:npm/mithril","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.2"}],"ecosystem":"npm","package":"mithril","purl":"pkg:npm/mithril","source":"ghsa"}],"references":[{"url":"https://www.npmjs.com/advisories/1094","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c3px-v9c7-m734","url":"https://github.com/advisories/GHSA-c3px-v9c7-m734","licence":"CC-BY-4.0","modified":"2020-08-31T18:47:02.000Z"}],"updatedAt":"2026-11-25T22:56:45.018Z"}