Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
MEDIUM severity

CVE-2020-35774 — twitter-server_2.12

MEDIUMFix: twitter/twitter-server@e0aeb87

CVE-2020-35774 is a medium-severity (CVSS 5.4) Cross-site Scripting (XSS) vulnerability in com.twitter:twitter-server_2.12. EPSS puts its 30-day exploitation probability at 85.6% (100th percentile). A fix is available for com.twitter:twitter-server_2.12 — see the affected versions and patch details below.

TwitterServer Cross-site Scripting via /histograms endpoint

Also known asGHSA-3mqv-8gxg-pfm4
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Oct 11, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
85.6%probability of exploitation in next 30 days
Very High Risk0.00%
Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk
79.2%82.7%86.1%89.6%81.2%85.6%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2020-35774 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,738 CVEs with a current EPSS score, this one falls in the 50–90% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
☕com.twitter:twitter-server_2.12

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

server/handler/HistogramQueryHandler.scala in Twitter TwitterServer (aka twitter-server) before 20.12.0, in some configurations, allows XSS via the /histograms endpoint.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
☕Mavencom.twitter:twitter-server_2.12all versions20.12.0com.twitter:twitter-server_2.12:20.12.0

Affected Products

1 product · 1 configurations
Application
twitter-servertwitter
< 20.12.0
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.twitter:twitter-server_2.12, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update com.twitter:twitter-server_2.12 to 20.12.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-35774 is resolved across your whole dependency graph.

  3. Workarounds

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

How to detect CVE-2020-35774

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2020-35774 -u https://target
Template
twitter-server Cross-Site Scripting
Severity
medium
Impact
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, data theft, or defacement.
Remediation
Apply the latest security patches or updates provided by Twitter to mitigate the XSS vulnerability.

Template by ProjectDiscovery nuclei-templates (pikpikcu), MIT licensed. View the full template. Scan only systems you are authorised to test.

Frequently Asked Questions

server/handler/HistogramQueryHandler.scala in Twitter TwitterServer (aka twitter-server) before 20.12.0, in some configurations, allows XSS via the /histograms endpoint.
O3 Security · Impact-Aware SCA

Is CVE-2020-35774 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2020-35774: twitter-server_2.12 XSS — Fixed in 20.12.0