5.4medium
Unauthenticated Denial of Service in the octokit/webhooks library
- Severity
- 5.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.90% (higher than 60% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pwfr-8pq7-x9qv
Description
octokit/webhooks is a GitHub webhook events toolset for Node.js. Starting in 9.26.0 and prior to 9.26.3, 10.9.2, 11.1.2, and 12.0.4, there is a problem caused by an issue with error handling in the @octokit/webhooks library because the error can be undefined in some cases. The resulting request was found to cause an uncaught exception that ends the nodejs process. The bug is fixed in octokit/webhooks.js 9.26.3, 10.9.2, 11.1.2, and 12.0.4, app.js 14.02, octokit.js 3.1.2, and Protobot 12.3.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| octokit webhooks.js | >= 9.26.0, < 9.26.3, >= 10.9.0, < 10.9.2, >= 11.1.0, < 11.1.2, >= 12.0.0, < 12.0.4 | CVE List |
| @octokit/webhooks (npm) | before 9.26.3, from 10.0.0 before 10.9.2, from 11.0.0 before 11.1.2, from 12.0.0 before 12.0.3 | GitHub Advisory Database |
| @octokit/app (npm) | from 14.0.1 before 14.0.2 | GitHub Advisory Database |
| octokit (npm) | before 3.1.2 | GitHub Advisory Database |
| probot (npm) | before 12.3.3 | GitHub Advisory Database |
| octokit app | 14.0.1 | NVD |
| octokit octokit | before 3.1.2 | NVD |
| octokit webhooks | before 9.26.3, from 10.0.0 before 10.9.2, from 11.0.0 before 11.1.2, from 12.0.0 before 12.0.4 | NVD |
| probot probot | before 12.3.3 | NVD |
All scores
| GitHub_M | 5.4medium CVSS:3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
octokit/webhooks is a GitHub webhook events toolset for Node.js. Starting in 9.26.0 and prior to 9.26.3, 10.9.2, 11.1.2, and 12.0.4, there is a problem caused by an issue with error handling in the @octokit/webhooks library because the error can be undefined in some cases. The resulting request was found to cause an uncaught exception that ends the nodejs process. The bug is fixed in octokit/webhooks.js 9.26.3, 10.9.2, 11.1.2, and 12.0.4, app.js 14.02, octokit.js 3.1.2, and Protobot 12.3.3.
GitHub Advisory Database
Impact
Versions v9.26.0, v10.9.x), v11.1.x, v12.0.x all contained the code that would throw the error.
Specifically, during a pentest we encountered a bug in the octokit/webhooks library (a dependency of Probot, a framework for building Github Apps). The resulting request was found to cause an uncaught exception that ends the nodejs process.
The problem is caused by an issue with error handling in the @octokit/webhooks library because the error can be undefined in some cases.
Credit goes to @pb82 (for the early analysis) and @rh-tguittet (for discovery).
Patches
Maintenance releases for the Error being thrown by the verify method in octokit/webhooks.js
Maintenance release for the reference for octokit/webhooks.js in app.js
Maintenance release for the reference for octokit/webhooks.js in octokit.js
Maintenance release for the reference for octokit/webhooks.js in Protobot
Workarounds
It is recommend that all users upgrade to the latest version of octokit/webhooks.js or use one of the updated back ported versions.
NVD (es)
octokit/webhooks es un conjunto de herramientas de eventos de webhook de GitHub para Node.js. A partir de 9.26.0 y anteriores a 9.26.3, 10.9.2, 11.1.2 y 12.0.4, hay un problema causado por un problema con el manejo de errores en la librería @octokit/webhooks porque el error puede no estar definido en algunos casos. Se descubrió que la solicitud resultante provoca una excepción no detectada que finaliza el proceso de nodejs. El error se solucionó en octokit/webhooks.js 9.26.3, 10.9.2, 11.1.2 y 12.0.4, app.js 14.02, octokit.js 3.1.2 y Protobot 12.3.3.
References
| https://github.com/octokit/webhooks.js/security/advisories/GHSA-pwfr-8pq7-x9qv | vendor-advisory, web | |
| https://github.com/octokit/app.js/releases/tag/v14.0.2 | release-notes, web | |
| https://github.com/octokit/octokit.js/releases/tag/v3.1.2 | release-notes, web | |
| https://github.com/octokit/webhooks.js/releases/tag/v10.9.2 | release-notes, web | |
| https://github.com/octokit/webhooks.js/releases/tag/v11.1.2 | release-notes, web | |
| https://github.com/octokit/webhooks.js/releases/tag/v12.0.4 | release-notes, web | |
| https://github.com/octokit/webhooks.js/releases/tag/v9.26.3 | release-notes, web | |
| https://github.com/probot/probot/releases/tag/v12.3.3 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-50728 | advisory | |
| https://github.com/octokit/webhooks.js | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-50728 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pwfr-8pq7-x9qv changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-50728 changed 2026-06-17 | Public domain |