# CVE-2021-43823: Side-channel attack in Sourcegraph

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/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.86%, higher than 59% of CVEs (2026-12-01)
- Published: 2021-12-13T19:55:10.000Z
- Modified: 2026-06-17T04:11:30.877Z
- Weaknesses: CWE-200, CWE-203
- Assigned by: GitHub_M

## Description

Sourcegraph is a code search and navigation engine. Sourcegraph prior to version 3.33.2 is vulnerable to a side-channel attack where strings in private source code could be guessed by an authenticated but unauthorized actor. This issue affects the Saved Searches and Code Monitoring features. A successful attack would require an authenticated bad actor to create many Saved Searches or Code Monitors to receive confirmation that a specific string exists. This could allow an attacker to guess formatted tokens in source code, such as API keys. This issue was patched in version 3.33.2 and any future versions of Sourcegraph. We strongly encourage upgrading to secure versions. If you are unable to, you may disable Saved Searches and Code Monitors.

(As written by CVE List.)

## Affected

- sourcegraph sourcegraph: < 3.33.2; before 3.33.2

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-cpq7-hmvv-29w9> (third-party-advisory)
- <https://github.com/sourcegraph/sourcegraph/commit/a88d90a8302c492282186d39718cd8fb093c14fa> (patch, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2021-43823 · Whole record: https://cve.day/CVE-2021-43823.json · Rebuilt by cve.day 2026-11-25T22:24:36.221Z
