CVE-2026-30920: OneUptime has broken access control in GitHub App installation flow that allows unauthorized project binding

Published Mar 9, 2026
·
Updated

Summary

OneUptime's GitHub App callback trusts attacker-controlled state and installationid 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.

Details

The callback decodes unsigned base64 JSON from state and uses the embedded projectId directly:

- https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L34-L112

It then writes the supplied installationid into the target project with root privileges:

ts await ProjectService.updateOneById({ id: new ObjectID(projectId), data: { gitHubAppInstallationId: installationId }, props: { isRoot: true }, });

The userId in state is only checked for presence, not authenticity:

- https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L73-L79

The install flow also generates state as plain base64 JSON, not a signed or session-bound token:

- https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L127-L165

The follow-on endpoints are also vulnerable:

- Repository listing: https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L179-L258 - Repository connect: https://github.com/OneUptime/oneuptime/blob/master/Common/Server/API/GitHubAPI.ts#L260-L356 - Middleware allows requests with no token to continue as Public: https://github.com/OneUptime/oneuptime/blob/master/Common/Server/Middleware/UserAuthorization.ts#L205-L211 - 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

PoC

Minimal proof of unauthorized project tampering:

bash STATE=$(printf '%s' '{"projectId":"<victim-project-uuid>","userId":"x"}' | base64 | tr -d '\n') curl -isk "https://<host>/api/github/auth/callback?installationid=999999999&state=${STATE}"

Expected result:

- Server returns a 302 redirect to /dashboard/<victim-project-uuid>/code-repository?installationid=999999999 - The target project's gitHubAppInstallationId is overwritten

Impact

- Unauthorized modification of Project.gitHubAppInstallationId - Temporary GitHub integration breakage if a bogus installation ID is set - Cross-project binding of attacker-controlled GitHub App installations - Repository metadata disclosure for a supplied valid installation ID - Unauthorized creation of CodeRepository records in arbitrary projects

Other sources

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 installationid 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.

— MITRE

Affected Software

2 affected componentsFixes available
npm/@oneuptime/common<10.0.19
10.0.19
Hackerbay Oneuptime<10.0.19

Event History

Mar 9, 2026
Advisory Published
via GitHub·05:29 PM
Data Sourced
via GitHub·05:29 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·10:57 PM
Data Sourced
via MITRE·10:57 PM
DescriptionSeverityWeakness
Mar 10, 2026
Data Sourced
via NVD·05:40 PM
DescriptionSeverityWeaknessAffected Software
Aug 9, 58172
Event
via FIRST·07:07 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-30920?

CVE-2026-30920 is considered a significant vulnerability as it allows unauthorized project modifications by exploiting trusted values in the GitHub App callback.

2

How do I fix CVE-2026-30920?

To fix CVE-2026-30920, update the @oneuptime/common package to version 10.0.20 or higher, where the vulnerability has been addressed.

3

What systems are affected by CVE-2026-30920?

CVE-2026-30920 affects the @oneuptime/common package version up to 10.0.19 when used in conjunction with OneUptime's GitHub App.

4

How does CVE-2026-30920 allow an attacker to exploit the system?

CVE-2026-30920 allows an attacker to overwrite project data by taking advantage of unvalidated and malicious state and installation_id parameters.

5

What are the potential impacts of CVE-2026-30920 on my project?

The potential impacts of CVE-2026-30920 include unauthorized access and modification of project configurations and data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203