TwitterServer Cross-site Scripting via /histograms endpointGHSA-3mqv-8gxg-pfm4
MEDIUMFix: twitter/twitter-server@e0aeb87GHSA-3mqv-8gxg-pfm4 is a medium-severity (CVSS 6.1) 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.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
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 GHSA-3mqv-8gxg-pfm4 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 GHSA-3mqv-8gxg-pfm4
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id ghsa-3mqv-8gxg-pfm4 -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 GHSA-3mqv-8gxg-pfm4 in your dependencies?
Find it across Maven, including transitive dependencies.