GHSA-pwfr-8pq7-x9qv

Suggest an improvement
Source
https://github.com/advisories/GHSA-pwfr-8pq7-x9qv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-pwfr-8pq7-x9qv/GHSA-pwfr-8pq7-x9qv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pwfr-8pq7-x9qv
Aliases
Related
Published
2023-12-16T00:52:19Z
Modified
2023-12-16T01:11:33.503655Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H CVSS Calculator
Summary
Unauthenticated Denial of Service in the octokit/webhooks library
Details

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 * v12 - v12.0.4 * v11 - v11.1.2 * v10 -v10.9.2 * v9 - v9.26.3

Maintenance release for the reference for octokit/webhooks.js in app.js * v14.0.2

Maintenance release for the reference for octokit/webhooks.js in octokit.js * v3.1.2

Maintenance release for the reference for octokit/webhooks.js in Protobot * v12.3.3

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.

Database specific
{
    "github_reviewed_at": "2023-12-16T00:52:19Z",
    "cwe_ids": [
        "CWE-755"
    ],
    "nvd_published_at": "2023-12-15T22:15:07Z",
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

npm / @octokit/webhooks

Package

Name
@octokit/webhooks
View open source insights on deps.dev
Purl
pkg:npm/%40octokit/webhooks

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
9.26.3

npm / @octokit/webhooks

Package

Name
@octokit/webhooks
View open source insights on deps.dev
Purl
pkg:npm/%40octokit/webhooks

Affected ranges

Type
SEMVER
Events
Introduced
10.0.0
Fixed
10.9.2

npm / @octokit/webhooks

Package

Name
@octokit/webhooks
View open source insights on deps.dev
Purl
pkg:npm/%40octokit/webhooks

Affected ranges

Type
SEMVER
Events
Introduced
11.0.0
Fixed
11.1.2

npm / @octokit/webhooks

Package

Name
@octokit/webhooks
View open source insights on deps.dev
Purl
pkg:npm/%40octokit/webhooks

Affected ranges

Type
SEMVER
Events
Introduced
12.0.0
Fixed
12.0.3

npm / @octokit/app

Package

Affected ranges

Type
SEMVER
Events
Introduced
14.0.1
Fixed
14.0.2

Affected versions

14.*

14.0.1

npm / octokit

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.2

npm / probot

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
12.3.3