webhooks.js: Improper Handling of Exceptional Conditions
CVE-2023-50728 is a high-severity improper handling of exceptional conditions vulnerability in webhooks.js from Octokit, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected webhooks.js versions: >= 9.26.0, < 9.26.3; >= 10.9.0, < 10.9.2; >= 11.1.0, < 11.1.2, and others listed below. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.9% chance of exploitation within 30 days, higher than 60% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Octokit to 3.1.2 or a later version.
- Update Webhooks to 9.26.3 or 10.9.2 or 11.1.2 or 12.0.4, whichever matches your release line, or a later version.
- Update Probot to 12.3.3 or a later version.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| 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 | Not stated |
| Octokit | App | 14.0.1 | Not stated |
| Octokit | Octokit | before 3.1.2 | 3.1.2 |
| Octokit | Webhooks | before 9.26.3; 10.0.0 up to, but not including, 10.9.2; 11.0.0 up to, but not including, 11.1.2; 12.0.0 up to, but not including, 12.0.4 | 9.26.3, 10.9.2, 11.1.2, 12.0.4 |
| Probot | Probot | before 12.3.3 | 12.3.3 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 5.4 | Medium | CNA (github.com) |
| CVSS 3.1 | 7.5 | High | NVD |
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Handling of Exceptional Conditions
The product does not handle or incorrectly handles an exceptional condition.
More Improper Handling of Exceptional Conditions vulnerabilities (CWE-755)
Timeline
- CVE record published.
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- github.com/octokit/app.js/releases/tag/v14.0.2Release Notes
- github.com/octokit/octokit.js/releases/tag/v3.1.2Release Notes
- github.com/octokit/webhooks.js/releases/tag/v10.9.2Release Notes
- github.com/octokit/webhooks.js/releases/tag/v11.1.2Release Notes
- github.com/octokit/webhooks.js/releases/tag/v12.0.4Release Notes
- github.com/octokit/webhooks.js/releases/tag/v9.26.3Release Notes
- github.com/probot/probot/releases/tag/v12.3.3Release Notes
Recent Improper Handling of Exceptional Conditions vulnerabilities
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
Spotted an error? Tell us.