CyberSecBulletin
CVE-2023-50728NVD status: Modified

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.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Octokit to 3.1.2 or a later version.
  2. 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.
  3. Update Probot to 12.3.3 or a later version.
  4. Read the advisory on github.com for workarounds and exact fixed builds.
  5. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
Octokitwebhooks.js>= 9.26.0, < 9.26.3; >= 10.9.0, < 10.9.2; >= 11.1.0, < 11.1.2; >= 12.0.0, < 12.0.4Not stated
OctokitApp14.0.1Not stated
OctokitOctokitbefore 3.1.23.1.2
OctokitWebhooksbefore 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.49.26.3, 10.9.2, 11.1.2, 12.0.4
ProbotProbotbefore 12.3.312.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 systemScoreSeverityScored by
CVSS 3.15.4MediumCNA (github.com)
CVSS 3.17.5HighNVD

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

  1. CVE record published.
  2. Record last changed materially (score, affected products, status or references).

References

Recent Improper Handling of Exceptional Conditions vulnerabilities

Spotted an error? Tell us.