CVE-2023-50728
JSON

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 packageVersionsReported 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.4CVE 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.3GitHub Advisory Database
@octokit/app (npm)from 14.0.1 before 14.0.2GitHub Advisory Database
octokit (npm)before 3.1.2GitHub Advisory Database
probot (npm)before 12.3.3GitHub Advisory Database
octokit app14.0.1NVD
octokit octokitbefore 3.1.2NVD
octokit webhooksbefore 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.4NVD
probot probotbefore 12.3.3NVD

All scores

GitHub_M5.4medium CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
NVD7.5high CVSS:3.1CVSS: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

Sources

SourceRecordLicence
CVE ListCVE-2023-50728 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-pwfr-8pq7-x9qv changed 2026-09-10CC-BY-4.0
NVDCVE-2023-50728 changed 2026-06-17Public domain