{"id":"CVE-2020-25864","aliases":["ALPINE-CVE-2020-25864","BIT-consul-2020-25864","DEBIAN-CVE-2020-25864","EUVD-2022-3260","GHSA-8xmx-h8rq-h94j","GO-2023-1851","UBUNTU-CVE-2020-25864"],"status":"published","title":"HashiCorp Consul Cross-site Scripting vulnerability","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.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.06068,"percentile":0.93439,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2021-04-20T13:07:21Z","modified":"2026-11-03T06:32:24Z","exploits":[{"source":"nuclei","id":"CVE-2020-25864","title":"HashiCorp Consul/Consul Enterprise \u003c=1.9.4 - Cross-Site Scripting","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-25864.yaml"}],"fixes":[{"ecosystem":"Go","package":"github.com/hashicorp/consul","fixed_in":["1.9.5","1.8.10","1.7.14"],"sources":["ghsa","osv"]},{"ecosystem":"Alpine:v3.13","package":"consul","fixed_in":["1.9.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"consul","fixed_in":["1.9.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"consul","fixed_in":["1.9.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"consul","fixed_in":["1.9.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"consul","fixed_in":["1.9.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"consul","fixed_in":["1.9.5-r0"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"consul","fixed_in":["1.7.14","1.8.10","1.9.5"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"consul","fixed_in":["1.8.7+dfsg1-2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/hashicorp/consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.9.0"},{"fixed":"1.9.5"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/hashicorp/consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.0"},{"fixed":"1.8.10"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/hashicorp/consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.14"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.0"},{"fixed":"1.9.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.0"},{"fixed":"1.9.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.0"},{"fixed":"1.9.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.0"},{"fixed":"1.9.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.0"},{"fixed":"1.9.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.0"},{"fixed":"1.9.5-r0"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"consul","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.7.14"},{"introduced":"1.8.0"},{"fixed":"1.8.10"},{"introduced":"1.9.0"},{"fixed":"1.9.5"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.7+dfsg1-2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/hashicorp/consul","ranges":[{"type":"SEMVER","events":[{"introduced":"1.9.0"},{"fixed":"1.9.5"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/hashicorp/consul","ranges":[{"type":"SEMVER","events":[{"introduced":"1.8.0"},{"fixed":"1.8.10"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/hashicorp/consul","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.7.14"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/hashicorp/consul","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.7.14"},{"introduced":"1.8.0"},{"fixed":"1.8.10"},{"introduced":"1.9.0"},{"fixed":"1.9.5"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.4~dfsg-3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.7~dfsg1-5ubuntu1","1.4.4~dfsg1-2ubuntu2","1.5.2+dfsg1-6","1.5.2+dfsg1-10","1.5.2+dfsg1-12","1.5.2+dfsg2-14"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"consul","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.4+dfsg1-1","1.8.7+dfsg1-3"]}],"products":[{"vendor":"hashicorp","product":"consul"}],"references":[{"url":"https://www.hashicorp.com/blog/category/consul","tags":["x_refsource_MISC","x_transferred","Product","Vendor Advisory","advisory","web"]},{"url":"https://discuss.hashicorp.com/t/hcsec-2021-07-consul-api-kv-endpoint-vulnerable-to-cross-site-scripting/23368","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://security.gentoo.org/glsa/202208-09","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25864","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-8xmx-h8rq-h94j","tags":["advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2020-25864","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-25864","tags":["advisory"]},{"url":"https://github.com/hashicorp/consul","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2020-25864","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1950275","tags":["report"]},{"url":"https://github.com/hashicorp/consul/pull/10023","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-25864","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-25864","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.","status":"published","published":"2021-04-20T13:07:21Z","modified":"2024-08-04T15:49:05.907Z","updated_at":"2026-11-02T14:35:48.52216Z"}],"euvd":[{"id":"EUVD-2022-3260","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.","status":"published","published":"2021-04-20T13:07:21Z","modified":"2024-08-04T15:49:05Z","updated_at":"2026-11-03T03:07:16.308974Z"}],"ghsa":[{"id":"GHSA-8xmx-h8rq-h94j","title":"HashiCorp Consul Cross-site Scripting vulnerability","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.","status":"published","published":"2022-05-24T17:48:04Z","modified":"2023-06-09T23:23:53Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:53.103029Z"}],"nvd":[{"id":"CVE-2020-25864","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.","status":"published","published":"2021-04-20T16:15:10.193Z","modified":"2026-06-17T03:07:24.717Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:39.25999Z"}],"osv":[{"id":"ALPINE-CVE-2020-25864","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.","status":"published","published":"2021-04-20T16:15:10.193Z","modified":"2026-11-03T06:32:24.928028801Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T07:17:57.723967Z"},{"id":"CVE-2020-25864","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.","status":"published","published":"2021-04-20T16:15:10.193Z","modified":"2026-10-24T10:30:35.810818818Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:15.879068Z"},{"id":"DEBIAN-CVE-2020-25864","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.","status":"published","published":"2021-04-20T16:15:10.193Z","modified":"2026-08-27T13:03:10.643656086Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:33.729655Z"},{"id":"GHSA-8xmx-h8rq-h94j","title":"HashiCorp Consul Cross-site Scripting vulnerability","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.","status":"published","published":"2022-05-24T17:48:04Z","modified":"2026-09-10T03:49:21.348592089Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:43.123867Z"},{"id":"UBUNTU-CVE-2020-25864","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.","status":"published","published":"2021-04-20T16:15:00Z","modified":"2025-10-24T04:48:45Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:23.905183Z"},{"id":"BIT-consul-2020-25864","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.","status":"published","published":"2024-03-06T10:54:23.598Z","modified":"2026-09-08T08:45:59.737765962Z","updated_at":"2026-11-02T15:28:28.70813Z"},{"id":"GO-2023-1851","title":"HashiCorp Consul Cross-site Scripting vulnerability in github.com/hashicorp/consul","description":"HashiCorp Consul Cross-site Scripting vulnerability in github.com/hashicorp/consul","status":"published","published":"2024-08-20T20:31:32Z","modified":"2026-02-04T03:19:43.866533Z","updated_at":"2026-11-02T15:47:01.185262Z"}]}}
