Vulnerability record · CVE-2022-31154 · published 1 August 2022
CVE-2022-31154: Sourcegraph incorrect authorization vulnerability
Sourcegraph · Sourcegraph
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.
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/sourcegraph/sourcegraph/pull/37526 | PatchThird Party Advisory |
| https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-5866-hhq9-9hpc | Third Party Advisory |
| https://github.com/sourcegraph/sourcegraph/pull/37526 | PatchThird Party Advisory |
| https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-5866-hhq9-9hpc | Third Party Advisory |
Track CVE-2022-31154 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-31154), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.