{"id":"CVE-2026-30920","aliases":["CVE-2026-30920","GHSA-656w-6f6c-m9r6"],"related":[],"kind":"vulnerability","state":"published","title":"OneUptime has broken access control in GitHub App installation flow that allows unauthorized project binding","summary":"OneUptime is a solution for monitoring and managing online services. Prior to 10.0.19, OneUptime's GitHub App callback trusts attacker-controlled state and installation_id values and updates Project.gitHubAppInstallationId with isRoot: true without validating that the caller is authorized for the target project. This allows an attacker to overwrite another project's GitHub App installation binding. Related GitHub endpoints also lack effective authorization, so a valid installation ID can be used to enumerate repositories and create CodeRepository records in an arbitrary project. This vulnerability is fixed in 10.0.19.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OneUptime is a solution for monitoring and managing online services. Prior to 10.0.19, OneUptime's GitHub App callback trusts attacker-controlled state and installation_id values and updates Project.gitHubAppInstallationId with isRoot: true without validating that the caller is authorized for the target project. This allows an attacker to overwrite another project's GitHub App installation binding. Related GitHub endpoints also lack effective authorization, so a valid installation ID can be used to enumerate repositories and create CodeRepository records in an arbitrary project. This vulnerability is fixed in 10.0.19.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nOneUptime's GitHub App callback trusts attacker-controlled `state` and `installation_id` values and updates `Project.gitHubAppInstallationId` with `isRoot: true` without validating that the caller is authorized for the target project. This allows an attacker to overwrite another project's GitHub App installation binding.\n\nRelated GitHub endpoints also lack effective authorization, so a valid installation ID can be used to enumerate repositories and create `CodeRepository` records in an arbitrary project.\n\n### Details\n\nThe callback decodes unsigned base64 JSON from `state` and uses the embedded `projectId` directly:\n\n- https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L34-L112\n\nIt then writes the supplied `installation_id` into the target project with root privileges:\n\n```ts\nawait ProjectService.updateOneById({\n  id: new ObjectID(projectId),\n  data: { gitHubAppInstallationId: installationId },\n  props: { isRoot: true },\n});\n```\n\nThe `userId` in `state` is only checked for presence, not authenticity:\n\n- https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L73-L79\n\nThe install flow also generates `state` as plain base64 JSON, not a signed or session-bound token:\n\n- https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L127-L165\n\nThe follow-on endpoints are also vulnerable:\n\n- Repository listing: https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L179-L258\n- Repository connect: https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L260-L356\n- Middleware allows requests with no token to continue as `Public`: https://github.com/OneUptime/oneuptime/blob/master/Common/Server/Middleware/UserAuthorization.ts#L205-L211\n- Installation tokens are minted from any valid installation ID: https://github.com/OneUptime/oneuptime/blob/master/Common/Server/Utils/CodeRepository/GitHub/GitHub.ts#L347-L425\n\n### PoC\n\nMinimal proof of unauthorized project tampering:\n\n```bash\nSTATE=$(printf '%s' '{\"projectId\":\"<victim-project-uuid>\",\"userId\":\"x\"}' | base64 | tr -d '\\n')\ncurl -isk \"https://<host>/api/github/auth/callback?installation_id=999999999&state=${STATE}\"\n```\n\nExpected result:\n\n- Server returns a `302` redirect to `/dashboard/<victim-project-uuid>/code-repository?installation_id=999999999`\n- The target project's `gitHubAppInstallationId` is overwritten\n\n### Impact\n\n- Unauthorized modification of `Project.gitHubAppInstallationId`\n- Temporary GitHub integration breakage if a bogus installation ID is set\n- Cross-project binding of attacker-controlled GitHub App installations\n- Repository metadata disclosure for a supplied valid installation ID\n- Unauthorized creation of `CodeRepository` records in arbitrary projects","format":"markdown","source":"ghsa"},{"lang":"es","text":"OneUptime es una solución para monitorear y gestionar servicios en línea. Antes de 10.0.19, la devolución de llamada de la aplicación GitHub de OneUptime confía en valores de estado y installation_id controlados por el atacante y actualiza Project.gitHubAppInstallationId con isRoot: true sin validar que el llamador esté autorizado para el proyecto objetivo. Esto permite a un atacante sobrescribir la vinculación de instalación de la aplicación GitHub de otro proyecto. Los puntos finales de GitHub relacionados también carecen de autorización efectiva, por lo que un ID de instalación válido puede ser utilizado para enumerar repositorios y crear registros de CodeRepository en un proyecto arbitrario. Esta vulnerabilidad se corrige en 10.0.19.","source":"nvd"}],"published":"2026-03-09T17:29:47.000Z","modified":"2026-06-17T10:33:09.093Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","score":8.6,"rating":"HIGH"}],"cwes":["CWE-345","CWE-639","CWE-862"],"affected":[{"ranges":[{"version":"< 10.0.19","status":"affected"}],"vendor":"OneUptime","product":"oneuptime","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"10.0.19"}],"ecosystem":"npm","package":"@oneuptime/common","purl":"pkg:npm/%40oneuptime/common","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"10.0.19"}],"vendor":"hackerbay","product":"oneuptime","cpe":"cpe:2.3:a:hackerbay:oneuptime:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OneUptime/oneuptime/security/advisories/GHSA-656w-6f6c-m9r6","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30920","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OneUptime/oneuptime","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L127-L165","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L179-L258","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L260-L356","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L34-L112","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L73-L79","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/OneUptime/oneuptime/blob/master/Common/Server/Middleware/UserAuthorization.ts#L205-L211","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/OneUptime/oneuptime/blob/master/Common/Server/Utils/CodeRepository/GitHub/GitHub.ts#L347-L425","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-03-10T14:14:27.669Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-30920","url":"https://www.cve.org/CVERecord?id=CVE-2026-30920","licence":"CVE Terms of Use","modified":"2026-03-10T14:14:51.667Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-656w-6f6c-m9r6","url":"https://github.com/advisories/GHSA-656w-6f6c-m9r6","licence":"CC-BY-4.0","modified":"2026-03-10T18:48:57.703Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-30920","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30920","licence":"Public domain","modified":"2026-06-17T10:33:09.093Z"}],"updatedAt":"2026-11-25T22:59:15.566Z","epss":{"score":0.0023,"percentile":0.14861,"date":"2026-12-01T12:00:22.000Z"}}