{"id":"CVE-2023-2121","aliases":["CVE-2023-2121","GHSA-gq98-53rq-qr5h","BIT-VAULT-2023-2121","GO-2023-1849"],"related":["CGA-vh8w-x5mx-x58p"],"kind":"vulnerability","state":"published","title":"Vault’s KV Diff Viewer Allowed for HTML Injection","summary":"Vault and Vault Enterprise's (Vault) key-value v2 (kv-v2) diff viewer allowed HTML injection into the Vault web UI through key values. This vulnerability, CVE-2023-2121, is fixed in Vault 1.14.0, 1.13.3, 1.12.7, and 1.11.11.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Vault and Vault Enterprise's (Vault) key-value v2 (kv-v2) diff viewer allowed HTML injection into the Vault web UI through key values. This vulnerability, CVE-2023-2121, is fixed in Vault 1.14.0, 1.13.3, 1.12.7, and 1.11.11.","source":"cvelist"},{"lang":"en","text":"Hashicorp Vault vulnerable to Cross-site Scripting in github.com/hashicorp/vault","format":"markdown","source":"go"}],"published":"2023-06-09T16:59:49.065Z","modified":"2026-09-10T03:49:54.426Z","severity":{"scorer":"HashiCorp","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"HashiCorp","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"1.13.0","fixed":"1.13.3","status":"affected"},{"type":"semver","introduced":"1.12.0","fixed":"1.12.7","status":"affected"},{"type":"semver","introduced":"1.11.0","fixed":"1.11.11","status":"affected"},{"type":"semver","introduced":"1.10.0","fixed":"1.11.0","status":"affected"}],"vendor":"HashiCorp","product":"Vault","repo":"https://github.com/hashicorp/vault","platforms":["Windows","MacOS","Linux","x86","ARM","64 bit","32 bit"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.13.0","fixed":"1.13.3","status":"affected"},{"type":"semver","introduced":"1.12.0","fixed":"1.12.7","status":"affected"},{"type":"semver","introduced":"1.11.0","fixed":"1.11.11","status":"affected"},{"type":"semver","introduced":"1.10.0","fixed":"1.11.0","status":"affected"}],"vendor":"HashiCorp","product":"Vault Enterprise","platforms":["Windows","MacOS","Linux","x86","ARM","64 bit","32 bit"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.11.11"}],"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.12.0","status":"affected","fixed":"1.12.7"}],"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.13.0","status":"affected","fixed":"1.13.3"}],"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.11.11"},{"type":"semver","introduced":"1.12.0","status":"affected","fixed":"1.12.7"},{"type":"semver","introduced":"1.13.0","status":"affected","fixed":"1.13.3"}],"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","source":"go"},{"ranges":[{"status":"affected","fixed":"1.11.11"},{"status":"affected","fixed":"1.11.11"},{"status":"affected","introduced":"1.12.0","fixed":"1.12.7"},{"status":"affected","introduced":"1.12.0","fixed":"1.12.7"},{"status":"affected","introduced":"1.13.0","fixed":"1.13.3"},{"status":"affected","introduced":"1.13.0","fixed":"1.13.3"}],"vendor":"hashicorp","product":"vault","cpe":"cpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.11.11"},{"type":"semver","introduced":"1.12.0","status":"affected","fixed":"1.12.7"},{"type":"semver","introduced":"1.13.0","status":"affected","fixed":"1.13.3"}],"ecosystem":"Bitnami","package":"vault","purl":"pkg:bitnami/vault","source":"bitnami"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2023-17-vault-s-kv-diff-viewer-allowed-html-injection/54814","tags":["advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2121","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/hashicorp/vault","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-gq98-53rq-qr5h","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"HashiCorp","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-01-06T18:14:31.031Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-2121","url":"https://www.cve.org/CVERecord?id=CVE-2023-2121","licence":"CVE Terms of Use","modified":"2025-01-06T18:15:00.958Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gq98-53rq-qr5h","url":"https://github.com/advisories/GHSA-gq98-53rq-qr5h","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:54.426Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-1849","url":"https://pkg.go.dev/vuln/GO-2023-1849","licence":"CC-BY-4.0","modified":"2026-02-04T03:04:27.771Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-2121","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2121","licence":"Public domain","modified":"2026-06-17T05:51:27.270Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-VAULT-2023-2121","url":"https://osv.dev/vulnerability/BIT-VAULT-2023-2121","licence":"Apache-2.0","modified":"2026-09-08T08:48:21.160Z"}],"updatedAt":"2026-11-25T22:58:24.723Z","epss":{"score":0.00417,"percentile":0.38016,"date":"2026-12-01T12:00:22.000Z"}}