# CVE-2022-31155: Unauthorized overwriting of saved searches in Sourcegraph

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/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.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2022-08-01T18:40:28.000Z
- Modified: 2026-06-17T04:44:55.210Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Sourcegraph is an opensource code search and navigation engine. In Sourcegraph versions before 3.41.0, it is possible for an attacker to delete other users’ saved searches due to a bug in the authorization check. The vulnerability does not allow the reading of other users’ saved searches, only overwriting them with attacker-controlled searches. The issue is patched in Sourcegraph version 3.41.0. There is no workaround for this issue and updating to a secure version is highly recommended.

(As written by CVE List.)

## Affected

- sourcegraph sourcegraph: < 3.41.0; before 3.41.0

## Every score

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

## References

- <https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-37qp-9jq6-f6mx> (third-party-advisory)
- <https://github.com/sourcegraph/sourcegraph/commit/2832d7882396a6295ba5803b5ef48dc7d5a24c59> (patch, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2022-31155 · Whole record: https://cve.day/CVE-2022-31155.json · Rebuilt by cve.day 2026-11-25T22:58:13.341Z
