# CVE-2020-25864: HashiCorp Consul Cross-site Scripting vulnerability

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.07%, higher than 93% of CVEs (2026-12-02)
- Published: 2021-04-20T13:07:21.000Z
- Modified: 2026-09-10T03:49:21.348Z
- Also known as: GHSA-8xmx-h8rq-h94j, BIT-CONSUL-2020-25864, GO-2023-1851
- Related: CGA-pgvj-869h-995w
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/hashicorp/consul (Go): from 1.9.0 before 1.9.5; from 1.8.0 before 1.8.10; before 1.7.14
- hashicorp consul: before 1.7.14; from 1.8.0 before 1.8.10; from 1.9.0 before 1.9.5
- consul (Bitnami): before 1.7.14; from 1.8.0 before 1.8.10; from 1.9.0 before 1.9.5

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://www.hashicorp.com/blog/category/consul> (advisory, product, vendor-advisory, web)
- <https://discuss.hashicorp.com/t/hcsec-2021-07-consul-api-kv-endpoint-vulnerable-to-cross-site-scripting/23368> (advisory, vendor-advisory, web)
- <https://security.gentoo.org/glsa/202208-09> (advisory, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25864> (advisory, web)
- <https://github.com/hashicorp/consul> (package)
- <https://github.com/advisories/GHSA-8xmx-h8rq-h94j> (advisory)

## Sources

- CVE List: [CVE-2020-25864](https://www.cve.org/CVERecord?id=CVE-2020-25864), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-8xmx-h8rq-h94j](https://github.com/advisories/GHSA-8xmx-h8rq-h94j), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-1851](https://pkg.go.dev/vuln/GO-2023-1851), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2020-25864](https://nvd.nist.gov/vuln/detail/CVE-2020-25864), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-CONSUL-2020-25864](https://osv.dev/vulnerability/BIT-CONSUL-2020-25864), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-25864 · Whole record: https://cve.day/CVE-2020-25864.json · Rebuilt by cve.day 2026-11-25T22:57:57.793Z
