GHSA-24v3-254g-jv85 — @tutao/tutanota-utils
Fix: tutao/tutanota@e28345fGHSA-24v3-254g-jv85 is a security vulnerability in @tutao/tutanota-utils. A fix is available for @tutao/tutanota-utils — see the affected versions and patch details below.
Tuta Mail has DOM attribute and CSS injection in its Contact Viewer feature
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.
@tutao/tutanota-utilsnpmDescription
Impact
Users importing contacts from untrusted sources.
Specifically crafted contact data can lead to some of DOM modifications for the link button next to the field e.g. the link address can be overriden. CSS can be manipulated to give the button arbitrary look and change it's size so that any click on the screen would lead to the specified URL. Modifying event listeners does not seem to be possible so no JS can be executed (which would also be prevented by CSP).
Technical details
The data is included as part of the mithril's hyperscript selector. It is possible to define a value like ][href=https://ddg.gg][style=position:fixed;width:150vw;height:200vh which will be included in the selector passed to Mithril and will be interpreted as part of the code.
Patches
https://github.com/tutao/tutanota/commit/e28345f5f78f628f9d5c04e785f79543f01dca8b
Workarounds
Do not open contact viewer on unpatched versions. If the contact was opened, close the app or use keyboard shortcuts to switch to another part of the app.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | @tutao/tutanota-utils | all versions | 314.251111.0npm install @tutao/tutanota-utils@314.251111.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @tutao/tutanota-utils, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update @tutao/tutanota-utils to 314.251111.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-24v3-254g-jv85 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.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-24v3-254g-jv85 can be triaged on real exposure rather than presence alone.
Tailored to GHSA-24v3-254g-jv85. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-24v3-254g-jv85 in your dependencies?
O3 Security finds GHSA-24v3-254g-jv85 across npm dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.