# GHSA-24v3-254g-jv85: Tuta Mail has DOM attribute and CSS injection in its Contact Viewer feature

> Attackers can inject DOM attributes and CSS via crafted contacts, overriding link targets and button appearance, potentially leading to phishing or UI spoofing.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 19 Dec 2025

## What is GHSA-24v3-254g-jv85?

GHSA-24v3-254g-jv85 is a cross-site scripting vulnerability in @tutao/tutanota-utils, published on 19 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

### 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](https://mithril.js.org/hyperscript.html#css-selectors). 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.

## Which versions are affected by GHSA-24v3-254g-jv85?

2 open source packages ship an affected version, including @tutao/tutanota-utils.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `@tutao/tutanota-utils` | npm | All versions | 314.251111.0 |
| `@tutao/tutanota-utils` | npm | All versions | 314.251111.0 |

## How do I fix GHSA-24v3-254g-jv85?

Upgrade @tutao/tutanota-utils to 314.251111.0 or later.

## Is GHSA-24v3-254g-jv85 being exploited?

There is no known exploitation of GHSA-24v3-254g-jv85 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-24v3-254g-jv85 and fix it if it is affected.

What it is: GHSA-24v3-254g-jv85 is a cross-site scripting vulnerability in @tutao/tutanota-utils, published on 19 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of GHSA-24v3-254g-jv85 in the wild and no public exploit code.

Affected packages and fixed versions:
- @tutao/tutanota-utils (npm): affected all versions; fixed in 314.251111.0
- @tutao/tutanota-utils (npm): affected all versions; fixed in 314.251111.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-24v3-254g-jv85/ (Markdown: https://insights.sbomify.com/GHSA-24v3-254g-jv85/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-24v3-254g-jv85

---
From sbomify Insights: https://insights.sbomify.com/GHSA-24v3-254g-jv85/
Summaries are generated and may contain mistakes; the official description above is the record.
