# CVE-2022-31154: Indirect Object Access in Sourcegraph Code Monitoring

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- 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:10.000Z
- Modified: 2026-06-17T04:44:55.090Z
- 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. It is possible for an authenticated Sourcegraph user to edit the Code Monitors owned by any other Sourcegraph user. This includes being able to edit both the trigger and the action of the monitor in question. An attacker is not able to read contents of existing code monitors, only override the data. The issue is fixed in Sourcegraph 3.42. There are no workaround for the issue and patching is highly recommended.

(As written by CVE List.)

## Affected

- sourcegraph sourcegraph: < 3.42; before 3.42.0

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- 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-5866-hhq9-9hpc> (third-party-advisory)
- <https://github.com/sourcegraph/sourcegraph/pull/37526> (patch, third-party-advisory)

## Sources

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

---

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