CVE-2020-35774
Java vulnerability analysis and mitigation

Overview

A Cross-Site Scripting (XSS) vulnerability was discovered in Twitter TwitterServer (CVE-2020-35774) before version 20.12.0. The vulnerability exists in the server/handler/HistogramQueryHandler.scala component, where in certain configurations, it allows XSS attacks via the /histograms endpoint (NVD, CVE).

Technical details

The vulnerability stems from improper neutralization of user input in the HistogramQueryHandler component. When displaying error messages about invalid histogram queries, the application directly incorporated user-supplied query parameters into the output without proper HTML escaping. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.4 (MEDIUM) with vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

The vulnerability allows attackers to inject malicious scripts through the /histograms endpoint. When successful, this could lead to execution of arbitrary web scripts in the context of other users' browsers who access the affected endpoint (NVD).

Exploitability

The vulnerability requires an attacker to have low privileges and user interaction for successful exploitation. The attack complexity is low, but it requires the victim to interact with a malicious payload (NVD).

Mitigation and workarounds

The vulnerability was fixed in TwitterServer version 20.12.0 by implementing proper HTML escaping of user-provided strings in the returned text. The fix specifically modifies the HistogramQueryHandler to escape user input using the escapeHtml function (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-73493HIGH7.5
  • Java logoJava
  • org.http4s:http4s-blaze-server_2.12
NoYesAug 12, 2026
CVE-2026-48048HIGH7.5
  • Java logoJava
  • org.xwiki.platform:xwiki-platform-livetable-ui
NoYesAug 10, 2026
CVE-2026-73495HIGH7.4
  • Java logoJava
  • org.http4s:blaze-http_2.12
NoYesAug 12, 2026
CVE-2026-48047MEDIUM5.9
  • Java logoJava
  • org.xwiki.platform:xwiki-platform-webjars-api
NoYesAug 07, 2026
CVE-2026-48791LOW2
  • Java logoJava
  • dev.sigstore:sigstore-java
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management