CVE-2020-35774 TwitterServer Cross-site Scripting via /histograms endpoint

Medium 5.4 Published Updated

Cross-site scripting vulnerability in TwitterServer allows attackers to inject scripts via the histograms endpoint in specific configurations.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-35774?

CVE-2020-35774 is a medium-severity cross-site scripting vulnerability in n/a, published on 29 Dec 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

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

Weakness: CWE-79

Which versions are affected by CVE-2020-35774?

2 open source packages ship an affected version, including com.twitter:twitter-server_2.12. It affects 1 product.

PackageAffectedFixed in
com.twitter:twitter-server_2.12 MavenAll versions20.12.0
com.twitter:twitter-server_2.12 MavenAll versions20.12.0

Products include Twitter Twitter-Server.

How do I fix CVE-2020-35774?

Upgrade com.twitter:twitter-server_2.12 to 20.12.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2020-35774 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-35774 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-3mqv-8gxg-pfm4.

Is CVE-2020-35774 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free