{"api_version":"1","generated_at":"2026-04-15T03:08:57+00:00","cve":"CVE-2022-46151","urls":{"html":"https://cve.report/CVE-2022-46151","api":"https://cve.report/api/cve/CVE-2022-46151.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-46151","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-46151"},"summary":{"title":"CVE-2022-46151","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-12-06 01:15:00","updated_at":"2022-12-07 15:23:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/pinterest/querybook/commit/88a7f10495bf5ed1a556ade51a2f2794e403c063","name":"https://github.com/pinterest/querybook/commit/88a7f10495bf5ed1a556ade51a2f2794e403c063","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-mrrw-9wf7-xq6w · pinterest/querybook@88a7f10 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pinterest/querybook/security/advisories/GHSA-mrrw-9wf7-xq6w","name":"https://github.com/pinterest/querybook/security/advisories/GHSA-mrrw-9wf7-xq6w","refsource":"MISC","tags":[],"title":"Reflected XSS · Advisory · pinterest/querybook · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-46151","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46151","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"46151","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pinterest","cpe5":"querybook","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-46151","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","cweId":"CWE-79"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"pinterest","product":{"product_data":[{"product_name":"querybook","version":{"version_data":[{"version_value":"< 3.14.2","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/pinterest/querybook/security/advisories/GHSA-mrrw-9wf7-xq6w","refsource":"MISC","name":"https://github.com/pinterest/querybook/security/advisories/GHSA-mrrw-9wf7-xq6w"},{"url":"https://github.com/pinterest/querybook/commit/88a7f10495bf5ed1a556ade51a2f2794e403c063","refsource":"MISC","name":"https://github.com/pinterest/querybook/commit/88a7f10495bf5ed1a556ade51a2f2794e403c063"}]},"source":{"advisory":"GHSA-mrrw-9wf7-xq6w","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"}]}},"nvd":{"publishedDate":"2022-12-06 01:15:00","lastModifiedDate":"2022-12-07 15:23:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:pinterest:querybook:*:*:*:*:*:*:*:*","versionEndExcluding":"3.14.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}