{"id":"GHSA-c3px-v9c7-m734","aliases":[],"status":"published","title":"Prototype Pollution in mithril","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`.\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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1321"],"published":"2020-09-03T19:04:39Z","modified":"2023-01-09T05:04:07Z","fixes":[{"ecosystem":"npm","package":"mithril","fixed_in":["1.1.7","2.0.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"mithril","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.7"}]}]},{"source":"ghsa","ecosystem":"npm","package":"mithril","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.2"}]}]},{"source":"osv","ecosystem":"npm","package":"mithril","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.7"}]}]},{"source":"osv","ecosystem":"npm","package":"mithril","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.0.2"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/1094","tags":["web"]},{"url":"https://github.com/advisories/GHSA-c3px-v9c7-m734"}],"sources":{"ghsa":[{"id":"GHSA-c3px-v9c7-m734","title":"Prototype Pollution in mithril","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`.\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.","status":"published","published":"2020-09-03T19:04:39Z","modified":"2023-01-09T05:04:07Z","cwes":["CWE-1321"],"updated_at":"2026-11-02T14:36:08.863482Z"}],"osv":[{"id":"GHSA-c3px-v9c7-m734","title":"Prototype Pollution in mithril","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`.\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.","status":"published","published":"2020-09-03T19:04:39Z","modified":"2020-08-31T18:47:02Z","cwes":["CWE-1321"],"updated_at":"2026-11-02T15:46:44.571161Z"}]}}
