CVE-2024-26148 Querybook's Stored Cross-Site Scripting vulnerability allows Privilege Elevation

Medium 6.1 Published Updated

Attackers can inject JavaScript via rich text editor URLs to execute code and escalate privileges to admin when victims click the link.

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-2024-26148?

CVE-2024-26148 is a medium-severity cross-site scripting vulnerability in pinterest querybook, published on 21 Feb 2024. 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 a user interface for querying big data. Prior to version 3.31.1, there is a vulnerability in Querybook's rich text editor that enables users to input arbitrary URLs without undergoing necessary validation. This particular security flaw allows the use of `javascript:` protocol which can potentially trigger arbitrary client-side execution. The most extreme exploit of this flaw could occur when an admin user unknowingly clicks on a cross-site scripting URL, thereby unintentionally compromising admin role access to the attacker. A patch to rectify this issue has been introduced in Querybook version `3.31.1`. The fix is backward compatible and automatically fixes existing DataDocs. There are no known workarounds for this issue, except for manually checking each URL prior to clicking on them.

Weakness: CWE-79

Which versions are affected by CVE-2024-26148?

It affects 1 product.

Products include Pinterest Querybook.

How do I fix CVE-2024-26148?

No fix has been published for CVE-2024-26148 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-2024-26148 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-26148 exists.

Sources

Also known as GHSA-fh6g-gvvp-587f.

Is CVE-2024-26148 in your software?

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

Check your SBOMs for free