Vulnerabilities in pkg:npm/@tutao/tutanota-utils

PACKAGE
Advisory Summary

GHSA-24v3-254g-jv85 is a LOW tuta mail has dom attribute vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @tutao/tutanota utils libraries in the npm ecosystem. The issue involves tuta mail has dom attribute and css injection in its contact viewer feature. Remediation is available by upgrading affected packages to version 314.251111.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@tutao/tutanota-utils

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@tutao/tutanota-utils. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-24v3-254g-jv85 - LOW Tuta Mail has DOM attribute and CSS injection in its Contact Viewer feature

GHSA-24v3-254g-jv85 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-24v3-254g-jv85
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product @tutao/tutanota utils
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-24v3-254g-jv85

To remediate this vulnerability, upgrade all affected @tutao/tutanota utils dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@tutao/tutanota-utils fixed: 314.251111.0
npm install @tutao/tutanota-utils@314.251111.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @tutao/tutanota-utils

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-24v3-254g-jv85, inspect your project dependencies using npm:

npm ls @tutao/tutanota-utils

Analyze the terminal output to locate any version of @tutao/tutanota utils in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 314.251111.0), your application is affected.

Note: The npm ls @tutao/tutanota-utils command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @tutao/tutanota utils, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

GHSA-24v3-254g-jv85 Affected @tutao/tutanota utils Versions

1 component(s)
Fixed Versions:
314.251111.0
Product / Package Ecosystem Affected Versions Fixed Version
@tutao/tutanota-utils
npm
< 314.251111.0
314.251111.0

References

Frequently Asked Questions

What is GHSA-24v3-254g-jv85?
GHSA-24v3-254g-jv85 is a security vulnerability in @tutao/tutanota utils involving Tuta Mail has DOM attribute and CSS injection in its Contact Viewer feature under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which @tutao/tutanota utils versions are affected?
Affected versions include releases prior to 314.251111.0 across affected packages: @tutao/tutanota-utils.
What version fixes GHSA-24v3-254g-jv85?
Upgrading to 314.251111.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @tutao/tutanota-utils affected?
Yes, @tutao/tutanota-utils is affected in releases prior to 314.251111.0. Upgrade your dependency to 314.251111.0 or later.
What CWE is associated with GHSA-24v3-254g-jv85?
GHSA-24v3-254g-jv85 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for GHSA-24v3-254g-jv85?
Run the dependency tree command: 'npm ls @tutao/tutanota-utils'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-24v3-254g-jv85",
  "modified" : "2025-12-19T21:32:35Z",
  "published" : "2025-12-19T21:32:35Z",
  "aliases" : [ ],
  "summary" : "Tuta Mail has DOM attribute and CSS injection in its Contact Viewer feature",
  "details" : "### Impact\nUsers importing contacts from untrusted sources.\n\nSpecifically 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).\n\n## Technical details\nThe 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.\n\n### Patches\nhttps://github.com/tutao/tutanota/commit/e28345f5f78f628f9d5c04e785f79543f01dca8b\n\n### Workarounds\nDo 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@tutao/tutanota-utils"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "314.251111.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/tutao/tutanota/security/advisories/GHSA-24v3-254g-jv85"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tutao/tutanota/commit/e28345f5f78f628f9d5c04e785f79543f01dca8b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tutao/tutanota"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tutao/tutanota/blob/452700a96d490646550ad2a02229973590291faf/src/mail-app/contacts/view/ContactViewer.ts#L326"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tutao/tutanota/blob/452700a96d490646550ad2a02229973590291faf/src/mail-app/contacts/view/ContactViewer.ts#L341"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tutao/tutanota/blob/452700a96d490646550ad2a02229973590291faf/src/mail-app/contacts/view/ContactViewer.ts#L356"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tutao/tutanota/blob/452700a96d490646550ad2a02229973590291faf/src/mail-app/contacts/view/ContactViewer.ts#L391"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tutao/tutanota/blob/452700a96d490646550ad2a02229973590291faf/src/mail-app/contacts/view/ContactViewer.ts#L415"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1021", "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-19T21:32:35Z",
    "nvd_published_at" : null
  }
}