{"id":"CVE-2022-46151","summary":"Reflected XSS","details":"Querybook is an open source data querying UI. In affected versions user provided data is not escaped in the error field of the auth callback url in `querybook/server/app/auth/oauth_auth.py` and `querybook/server/app/auth/okta_auth.py`. This may allow attackers to perform reflected cross site scripting (XSS) if Content Security Policy (CSP) is not enabled or `unsafe-inline` is allowed. Users are advised to upgrade to the latest, patched version of querybook (version 3.14.2 or greater). Users unable to upgrade may enable CSP and not allow unsafe-inline or manually escape query parameters in a reverse proxy.","aliases":["GHSA-mrrw-9wf7-xq6w"],"modified":"2026-07-15T01:49:20.819180584Z","published":"2022-12-06T00:33:43.731Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46151.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46151.json"},{"type":"ADVISORY","url":"https://github.com/pinterest/querybook/security/advisories/GHSA-mrrw-9wf7-xq6w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46151"},{"type":"FIX","url":"https://github.com/pinterest/querybook/commit/88a7f10495bf5ed1a556ade51a2f2794e403c063"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pinterest/querybook","events":[{"introduced":"0"},{"fixed":"2f36f6b5ef1231017e4fddc32cef7c3125ae4610"},{"fixed":"88a7f10495bf5ed1a556ade51a2f2794e403c063"}],"database_specific":{"cpe":"cpe:2.3:a:pinterest:querybook:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.14.2"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v2.4.0","v2.3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-46151.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"}]}