CVE-2021-37936 Cross-site scripting in Kibana

Medium 5.4 Published Updated

An attacker with write access to Elasticsearch can inject HTML into Kibana Discover, leading to XSS when search terms are highlighted.

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
None listed

What is CVE-2021-37936?

CVE-2021-37936 is a medium-severity cross-site scripting vulnerability in Elastic Kibana, published on 18 Nov 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

It was discovered that Kibana was not sanitizing document fields containing HTML snippets. Using this vulnerability, an attacker with the ability to write documents to an elasticsearch index could inject HTML. When the Discover app highlighted a search term containing the HTML, it would be rendered for the user.

Weakness: CWE-79

Which versions are affected by CVE-2021-37936?

It affects 1 product.

Products include Elastic Kibana.

How do I fix CVE-2021-37936?

No fix has been published for CVE-2021-37936 yet. Limit exposure of the affected software until one is available.

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-2021-37936 being exploited?

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

All Elastic Kibana vulnerabilities

Sources

Also known as GHSA-p8x3-m7c8-mcj5.

Is CVE-2021-37936 in your software?

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

Check your SBOMs for free