CVE-2024-10086 Consul Vulnerable To Reflected XSS On Content-Type Error Manipulation

Medium 6.1 Published Updated

Attackers can execute arbitrary scripts in user browsers via reflected XSS due to missing Content-Type headers in Consul server responses.

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-2024-10086?

CVE-2024-10086 is a medium-severity cross-site scripting vulnerability in HashiCorp Consul, published on 30 Oct 2024. 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

A vulnerability was identified in Consul and Consul Enterprise such that the server response did not explicitly set a Content-Type HTTP header, allowing user-provided inputs to be misinterpreted and lead to reflected XSS.

Weakness: CWE-79

Which versions are affected by CVE-2024-10086?

4 open source packages ship an affected version, including github.com/hashicorp/consul and consul. It affects 1 product.

PackageAffectedFixed in
github.com/hashicorp/consul GoFrom 1.4.11.20.0
github.com/hashicorp/consul GoFrom 1.4.11.20.0
github.com/hashicorp/consul GoFrom 1.4.11.20.0
consul BitnamiFrom 1.4.11.20.0

Products include Hashicorp Consul.

How do I fix CVE-2024-10086?

Upgrade github.com/hashicorp/consul to 1.20.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-2024-10086 being exploited?

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

Sources

Also known as BIT-consul-2024-10086, DEBIAN-CVE-2024-10086, GHSA-99wr-c2px-grmh, GO-2024-3242, UBUNTU-CVE-2024-10086.

Is CVE-2024-10086 in your software?

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

Check your SBOMs for free