GHSA-24v3-254g-jv85

Suggest an improvement
Source
https://github.com/advisories/GHSA-24v3-254g-jv85
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-24v3-254g-jv85/GHSA-24v3-254g-jv85.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-24v3-254g-jv85
Published
2025-12-19T21:32:35Z
Modified
2025-12-19T21:50:33Z
Severity
  • 2.1 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
Tuta Mail has DOM attribute and CSS injection in its Contact Viewer feature
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-1021",
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-12-19T21:32:35Z",
    "nvd_published_at":  null,
    "severity":  "LOW"
}
References

Affected packages

npm / @tutao/tutanota-utils

Package

Name
@tutao/tutanota-utils
View open source insights on deps.dev
Purl
pkg:npm/%40tutao/tutanota-utils

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
314.251111.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-24v3-254g-jv85/GHSA-24v3-254g-jv85.json"