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
EPSS Exploitation Probability
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
com.twitter:twitter-server_2.12Real-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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.twitter:twitter-server_2.12 | all versions | 20.12.0com.twitter:twitter-server_2.12:20.12.0 |
Affected Products
twitter-servertwitterDetection & mitigation playbook
Open-source dependencyDetect
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.
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.
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
Is CVE-2020-35774 in your dependencies?
Find it across Maven, including transitive dependencies.