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

- Severity: Low (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-12-19T21:32:35.000Z
- Modified: 2025-12-19T21:50:33.801Z
- Weaknesses: CWE-79, CWE-1021

## 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.

(As written by GitHub Advisory Database.)

## Affected

- @tutao/tutanota-utils (npm): before 314.251111.0

## References

- <https://github.com/tutao/tutanota/security/advisories/GHSA-24v3-254g-jv85> (web)
- <https://github.com/tutao/tutanota/commit/e28345f5f78f628f9d5c04e785f79543f01dca8b> (web)
- <https://github.com/tutao/tutanota> (package)
- <https://github.com/tutao/tutanota/blob/452700a96d490646550ad2a02229973590291faf/src/mail-app/contacts/view/ContactViewer.ts#L326> (web)
- <https://github.com/tutao/tutanota/blob/452700a96d490646550ad2a02229973590291faf/src/mail-app/contacts/view/ContactViewer.ts#L341> (web)
- <https://github.com/tutao/tutanota/blob/452700a96d490646550ad2a02229973590291faf/src/mail-app/contacts/view/ContactViewer.ts#L356> (web)
- <https://github.com/tutao/tutanota/blob/452700a96d490646550ad2a02229973590291faf/src/mail-app/contacts/view/ContactViewer.ts#L391> (web)
- <https://github.com/tutao/tutanota/blob/452700a96d490646550ad2a02229973590291faf/src/mail-app/contacts/view/ContactViewer.ts#L415> (web)

## Sources

- GitHub Advisory Database: [GHSA-24v3-254g-jv85](https://github.com/advisories/GHSA-24v3-254g-jv85), CC-BY-4.0, modified 2025-12-19

---

Page: https://cve.day/GHSA-24v3-254g-jv85 · Whole record: https://cve.day/GHSA-24v3-254g-jv85.json · Rebuilt by cve.day 2026-11-25T22:56:43.553Z
