Skip to content

DOM Clobbering leads to temporary DOS in the note viewer

Low
laurent22 published GHSA-5cch-jr52-qffh Feb 7, 2025

Package

@joplin/app-desktop, @joplin/app-mobile

Affected versions

<= 3.2.3

Patched versions

None

Description

Summary

A DOM clobbering vulnerability causes most script interactions with the Markdown viewer to fail with errors.

Details

Joplin's HTML sanitizer allows the name attribute to be specified. If name is set to the same value as an existing document property (e.g. querySelector), that property is replaced with the element.

See Wikipedia: DOM Clobbering.

PoC

  1. Create a note with the following content:
<img name=getElementById src=x/>
  1. Attempt to switch notes.
  2. Observe that the content of the original note is still visible.
  3. Observe that the console contains errors: lib.js:217 Uncaught TypeError: document.getElementById is not a function

Impact

This vulnerability's only known impact is denial of service — the note viewer fails to refresh until closed and re-opened with a different note.

Severity

Low

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

CVE ID

CVE-2024-55630

Weaknesses

No CWEs

Credits