Prototype Pollution in mithrilGHSA-c3px-v9c7-m734
GHSA-c3px-v9c7-m734 is a security vulnerability in mithril. A fix is available for mithril — see the affected versions and patch details below.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
mithrilnpmDescription
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | mithril | all versions | 1.1.7npm install mithril@1.1.7 |
| 📦npm | mithril | ≥ 2.0.0&&< 2.0.2 | 2.0.2npm install mithril@2.0.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for mithril, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update mithril to 1.1.7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-c3px-v9c7-m734 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-c3px-v9c7-m734 in your dependencies?
Find it across npm, including transitive dependencies.