cve.bz

CVE-2020-25864 hashicorp consul: Cross-site Scripting

6.1 mediumEPSS 6.1%Fix available

Medium (6.1) in hashicorp consul. EPSS 6.1% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/hashicorp/consul 1.7.14, 1.8.10, 1.9.5.

On this page
HashiCorp Consul and Consul Enterprise up to version 1.9.4 key-value (KV) raw mode was vulnerable to cross-site scripting. Fixed in 1.9.5, 1.8.10 and 1.7.14.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
6.1% (unchanged from 6.1% a week ago; 6.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-25864 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-25864?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-25864?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-25864 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
hashicorp:consulbefore 1.7.14
hashicorp:consulfrom 1.8.0 before 1.8.10
hashicorp:consulfrom 1.9.0 before 1.9.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8xmx-h8rq-h94jGogithub.com/hashicorp/consul>=1.9.0 <1.9.51.9.5
GHSA-8xmx-h8rq-h94jGogithub.com/hashicorp/consul>=1.8.0 <1.8.101.8.10
GHSA-8xmx-h8rq-h94jGogithub.com/hashicorp/consul<1.7.141.7.14
GO-2023-1851Gogithub.com/hashicorp/consul<1.7.14
>=1.8.0 <1.8.10
>=1.9.0 <1.9.5
1.7.14, 1.8.10, 1.9.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11consul1.8.7+dfsg1-2DEBIAN-CVE-2020-25864
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTSconsulno fix listedUBUNTU-CVE-2020-25864
Alpinev3.13, v3.14, v3.15 and 3 moreconsul1.9.5-r0ALPINE-CVE-2020-25864

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

OpenShift Container Platform (OCP) and OpenShift Service Mesh (OSSM) components ship only consul api which could be used for connection to consul service mesh solution, therefore are not affected by this flaw.

Some OpenShift Virtualization components reference consul in go.sum files, however none of the projects or container images depend on or ship consul, therefore are not affected by this flaw.

ProductPackageStateAdvisory
OpenShift Service Mesh 2.0servicemeshNot affected
OpenShift Service Mesh 2.0servicemesh-prometheusNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/metrics-collector-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-observability-rhel9-operatorNot affected
Red Hat Fuse 7consul-clientNot affected
Red Hat OpenShift Container Platform 4openshift4/cnf-tests-rhel8Not affected
Red Hat OpenShift Container Platform 4openshift4/compliance-rhel8-operatorNot affected
Red Hat OpenShift Container Platform 4openshift4/file-integrity-rhel8-operatorNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-baremetal-machine-controllers-rhel9Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-cluster-etcd-rhel9-operatorNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-cluster-node-tuning-operatorNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-cluster-node-tuning-rhel9-operatorNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-operator-registryNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-prometheusNot affected
Red Hat OpenShift Container Platform 4openshift4-wincw/windows-machine-config-rhel8-operatorNot affected
Red Hat OpenShift Virtualization 4container-native-virtualization/hostpath-provisioner-rhel8-operatorNot affected
Red Hat OpenShift Virtualization 4container-native-virtualization/hyperconverged-cluster-operatorNot affected
Red Hat OpenShift Virtualization 4container-native-virtualization/hyperconverged-cluster-webhook-rhel8Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-25864.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON