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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.87% (percentile 56, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-hjfc-6jxr-j2rx
- **Published:** 2024-05-23T09:56:31.696Z
- **Modified:** 2026-06-17T08:15:19.747Z

## Who should check

- Projects that depend on Maven package org.eclipse.ditto:ditto (\>= 3.0.0, \< 3.4.5)
- Anyone running Eclipse Foundation Eclipse Ditto \< 3.4.6; \>= 3.5.0, \< 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.

## Affected and fixed versions

- Maven `org.eclipse.ditto:ditto`: affected \>= 3.0.0, \< 3.4.5; fixed 3.4.5, 3.5.6 (osv)
- Eclipse Foundation Eclipse Ditto: \< 3.4.6; \>= 3.5.0, \< 3.5.6 (cvelist)

## Mitigation

- Upgrade org.eclipse.ditto:ditto to one of 3.4.5, 3.5.6 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-5165. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-5165.md
Affected: org.eclipse.ditto:ditto >= 3.0.0, < 3.4.5
Fixed in: 3.4.5, 3.5.6

Steps:
1. Search this machine and project for org.eclipse.ditto:ditto (Maven), Eclipse Foundation Eclipse Ditto: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-5165 being exploited?

There is no confirmed exploitation: CVE-2024-5165 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.87% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-5165?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2024-5165?

org.eclipse.ditto:ditto \>= 3.0.0, \< 3.4.5.

### Is there a fix for CVE-2024-5165?

Yes. Fixed in 3.4.5, 3.5.6. Upgrade org.eclipse.ditto:ditto to one of 3.4.5, 3.5.6 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-5165?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://gitlab.eclipse.org/security/cve-assignement/-/issues/23>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-5165>
- patch: <https://github.com/eclipse-ditto/ditto/commit/20399a0ab9ef219c7833c24cf8140ddfb298788d>
- patch: <https://github.com/eclipse-ditto/ditto/commit/8fe1b3b9e0e2c333856dc166c8c3c7d2027c856d>
- patch: <https://github.com/eclipse-ditto/ditto/commit/9d1bac36ca7be94516635ef71eedfea6df1e77f4>
- patch: <https://github.com/eclipse-ditto/ditto/commit/cce2e961db08b5d591ef34920c61a0f7e7d810e4>
- exploit: <https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/211>
- exploit: <https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/210>
- exploit: <https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/209>
- exploit: <https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/207>
- exploit: <https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/204>
- exploit: <https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/202>
- exploit: <https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/201>
- other: <https://eclipse.dev/ditto/release_notes_345.html>
- other: <https://eclipse.dev/ditto/release_notes_356.html>
- other: <https://github.com/eclipse-ditto/ditto>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-5165>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hjfc-6jxr-j2rx> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-5165> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-5165>
