# CVE-2024-27103: Querybook Stored Cross-Site Scripting allows Privilege Elevation

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2024-02-28T17:41:36.012Z
- Modified: 2026-06-17T07:19:10.540Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Querybook is a Big Data Querying UI. When a user searches for their queries, datadocs, tables and lists, the search result is marked and highlighted, and this feature uses dangerouslySetInnerHTML which means that if the highlighted result has an XSS payload it will trigger. While the input to dangerouslySetInnerHTML is not sanitized for the data inside of queries which leads to an XSS vulnerability. During the "query auto-suggestion" the name of the suggested tables are set with innerHTML which leads to the XSS vulnerability. A patch to rectify this issue has been introduced in Querybook version 3.31.2.

(As written by CVE List.)

## Affected

- pinterest querybook: < 3.31.1; before 3.31.2

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/pinterest/querybook/security/advisories/GHSA-3hjm-9277-5c88> (patch, vendor-advisory)
- <https://github.com/pinterest/querybook/commit/449bdc9e7d679e042c3718b7ed07d2ffa3c46a8f> (patch)

## Sources

- CVE List: [CVE-2024-27103](https://www.cve.org/CVERecord?id=CVE-2024-27103), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-27103](https://nvd.nist.gov/vuln/detail/CVE-2024-27103), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27103 · Whole record: https://cve.day/CVE-2024-27103.json · Rebuilt by cve.day 2026-11-25T22:58:37.112Z
