{"id":"CVE-2020-25864","aliases":["CVE-2020-25864","GHSA-8xmx-h8rq-h94j","BIT-CONSUL-2020-25864","GO-2023-1851"],"related":["CGA-pgvj-869h-995w"],"kind":"vulnerability","state":"published","title":"HashiCorp Consul Cross-site Scripting vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"HashiCorp Consul Cross-site Scripting vulnerability in github.com/hashicorp/consul","format":"markdown","source":"go"},{"lang":"es","text":"El modo sin procesar de HashiCorp Consul y Consul Enterprise hasta versión 1.9.4, key-value (KV) era vulnerable a un ataque de tipo cross-site scripting.&#xa0;Corregido en versiones 1.9.5, 1.8.10 y 1.7.14","source":"nvd"}],"published":"2021-04-20T13:07:21.000Z","modified":"2026-09-10T03:49:21.348Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.9.0","status":"affected","fixed":"1.9.5"}],"ecosystem":"Go","package":"github.com/hashicorp/consul","purl":"pkg:golang/github.com/hashicorp/consul","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.10"}],"ecosystem":"Go","package":"github.com/hashicorp/consul","purl":"pkg:golang/github.com/hashicorp/consul","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.14"}],"ecosystem":"Go","package":"github.com/hashicorp/consul","purl":"pkg:golang/github.com/hashicorp/consul","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.14"},{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.10"},{"type":"semver","introduced":"1.9.0","status":"affected","fixed":"1.9.5"}],"ecosystem":"Go","package":"github.com/hashicorp/consul","purl":"pkg:golang/github.com/hashicorp/consul","source":"go"},{"ranges":[{"status":"affected","fixed":"1.7.14"},{"status":"affected","fixed":"1.7.14"},{"status":"affected","introduced":"1.8.0","fixed":"1.8.10"},{"status":"affected","introduced":"1.8.0","fixed":"1.8.10"},{"status":"affected","introduced":"1.9.0","fixed":"1.9.5"},{"status":"affected","introduced":"1.9.0","fixed":"1.9.5"}],"vendor":"hashicorp","product":"consul","cpe":"cpe:2.3:a:hashicorp:consul:*:*:*:*:-:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.14"},{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.10"},{"type":"semver","introduced":"1.9.0","status":"affected","fixed":"1.9.5"}],"ecosystem":"Bitnami","package":"consul","purl":"pkg:bitnami/consul","source":"bitnami"}],"references":[{"url":"https://www.hashicorp.com/blog/category/consul","tags":["advisory","product","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://discuss.hashicorp.com/t/hcsec-2021-07-consul-api-kv-endpoint-vulnerable-to-cross-site-scripting/23368","tags":["advisory","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202208-09","tags":["advisory","third-party-advisory","vendor-advisory","web","x-refsource-gentoo","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25864","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/hashicorp/consul","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-8xmx-h8rq-h94j","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-25864","url":"https://www.cve.org/CVERecord?id=CVE-2020-25864","licence":"CVE Terms of Use","modified":"2024-08-04T15:49:05.907Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8xmx-h8rq-h94j","url":"https://github.com/advisories/GHSA-8xmx-h8rq-h94j","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:21.348Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-1851","url":"https://pkg.go.dev/vuln/GO-2023-1851","licence":"CC-BY-4.0","modified":"2026-02-04T03:19:43.866Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-25864","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25864","licence":"Public domain","modified":"2026-06-17T03:07:24.717Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-CONSUL-2020-25864","url":"https://osv.dev/vulnerability/BIT-CONSUL-2020-25864","licence":"Apache-2.0","modified":"2026-09-08T08:45:59.737Z"}],"updatedAt":"2026-11-25T22:57:57.793Z","epss":{"score":0.06068,"percentile":0.93552,"date":"2026-12-02T12:00:21.000Z"}}