logo

CVE-2023-50728 octokit

Package

Manager: npm
Name: octokit
Vulnerable Version: >=0 <3.1.2

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00657 pctl0.70142

Details

Unauthenticated Denial of Service in the octokit/webhooks library ### Impact Versions [v9.26.0](https://github.com/octokit/webhooks.js/releases/tag/v9.26.0), [v10.9.x](https://github.com/octokit/webhooks.js/releases/tag/v10.9.1)), [v11.1.x](https://github.com/octokit/webhooks.js/releases/tag/v11.1.1), [v12.0.x](https://github.com/octokit/webhooks.js/releases/tag/v12.0.3) 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](https://github.com/octokit/webhooks.js) * v12 - [v12.0.4](https://github.com/octokit/webhooks.js/releases/tag/v12.0.4) * v11 - [v11.1.2](https://github.com/octokit/webhooks.js/releases/tag/v11.1.2) * v10 -[v10.9.2](https://github.com/octokit/webhooks.js/releases/tag/v10.9.2) * v9 - [v9.26.3](https://github.com/octokit/webhooks.js/releases/tag/v9.26.3) Maintenance release for the reference for [octokit/webhooks.js](https://github.com/octokit/webhooks.js) in [app.js](https://github.com/octokit/app.js) * [v14.0.2](https://github.com/octokit/app.js/releases/tag/v14.0.2) Maintenance release for the reference for [octokit/webhooks.js](https://github.com/octokit/webhooks.js) in [octokit.js](https://github.com/octokit/octokit.js) * [v3.1.2](https://github.com/octokit/octokit.js/releases/tag/v3.1.2) Maintenance release for the reference for [octokit/webhooks.js](https://github.com/octokit/webhooks.js) in [Protobot](https://github.com/probot/probot) * [v12.3.3](https://github.com/probot/probot/releases/tag/v12.3.3) ### Workarounds It is recommend that all users upgrade to the latest version of [octokit/webhooks.js](https://github.com/octokit/webhooks.js) or use one of the updated back ported versions.

Metadata

Created: 2023-12-16T00:52:19Z
Modified: 2023-12-16T00:52:19Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-pwfr-8pq7-x9qv/GHSA-pwfr-8pq7-x9qv.json
CWE IDs: ["CWE-755"]
Alternative ID: GHSA-pwfr-8pq7-x9qv
Finding: F096
Auto approve: 1