CVE-2022-46151 Reflected XSS

Medium 6.3 Published Updated

Attackers can execute arbitrary scripts via reflected XSS in the auth callback error field if CSP is disabled or unsafe-inline is allowed.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-46151?

CVE-2022-46151 is a medium-severity cross-site scripting vulnerability in pinterest querybook, published on 6 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2022-46151?

It affects 1 product.

Products include Pinterest Querybook.

How do I fix CVE-2022-46151?

No fix has been published for CVE-2022-46151 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-46151 being exploited?

There is no known exploitation of CVE-2022-46151 in the wild and no public exploit code.

Sources

Also known as GHSA-mrrw-9wf7-xq6w.

Is CVE-2022-46151 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free