{"id":"GHSA-8xmx-h8rq-h94j","summary":"HashiCorp Consul Cross-site Scripting vulnerability","details":"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.","aliases":["BIT-consul-2020-25864","CVE-2020-25864","GO-2023-1851"],"modified":"2026-07-17T21:09:58.479540209Z","published":"2022-05-24T17:48:04Z","database_specific":{"nvd_published_at":"2021-04-20T16:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-06-09T23:23:51Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25864"},{"type":"WEB","url":"https://discuss.hashicorp.com/t/hcsec-2021-07-consul-api-kv-endpoint-vulnerable-to-cross-site-scripting/23368"},{"type":"PACKAGE","url":"https://github.com/hashicorp/consul"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202208-09"},{"type":"WEB","url":"https://www.hashicorp.com/blog/category/consul"}],"affected":[{"package":{"name":"github.com/hashicorp/consul","ecosystem":"Go","purl":"pkg:golang/github.com/hashicorp/consul"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.9.0"},{"fixed":"1.9.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-8xmx-h8rq-h94j/GHSA-8xmx-h8rq-h94j.json"}},{"package":{"name":"github.com/hashicorp/consul","ecosystem":"Go","purl":"pkg:golang/github.com/hashicorp/consul"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.8.0"},{"fixed":"1.8.10"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-8xmx-h8rq-h94j/GHSA-8xmx-h8rq-h94j.json"}},{"package":{"name":"github.com/hashicorp/consul","ecosystem":"Go","purl":"pkg:golang/github.com/hashicorp/consul"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.7.14"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-8xmx-h8rq-h94j/GHSA-8xmx-h8rq-h94j.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}