CVE-2020-26891 Cross-site scripting (XSS) vulnerability in the fallback authentication endpoint

Medium 6.1 Published Updated

Remote attackers can execute XSS on Matrix Synapse via malicious URLs, potentially compromising user accounts on the hosted domain.

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

What is CVE-2020-26891?

CVE-2020-26891 is a medium-severity cross-site scripting vulnerability in n/a, published on 19 Oct 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

AuthRestServlet in Matrix Synapse before 1.21.0 is vulnerable to XSS due to unsafe interpolation of the session GET parameter. This allows a remote attacker to execute an XSS attack on the domain Synapse is hosted on, by supplying the victim user with a malicious URL to the /_matrix/client/r0/auth/*/fallback/web or /_matrix/client/unstable/auth/*/fallback/web Synapse endpoints.

Weakness: CWE-79

Which versions are affected by CVE-2020-26891?

3 open source packages ship an affected version, including matrix-synapse. It affects 1 product.

PackageAffectedFixed in
matrix-synapse PyPIAll versions1.21.0
matrix-synapse PyPIAll versions1.21.0
matrix-synapse PyPIAll versions1.21.0

Products include Matrix Synapse.

How do I fix CVE-2020-26891?

Upgrade matrix-synapse to 1.21.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-26891 being exploited?

There is no known exploitation of CVE-2020-26891 in the wild and no public exploit code.

Sources

Also known as GHSA-3x8c-fmpc-5rmq, PYSEC-2020-238, UBUNTU-CVE-2020-26891.

Is CVE-2020-26891 in your software?

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

Check your SBOMs for free