R gh Package Authorization Header Exposure Vulnerability

Vulnerability

A vulnerability exists in the R 'gh' package, specifically in versions prior to 1.5.0, where the HTTP response includes the Authorization header from the corresponding request. This could lead to unintentional exposure of sensitive information, such as API keys, especially if the response is cached and later committed to a public repository.

Impact

This vulnerability could result in the unauthorized disclosure of sensitive information, including API keys, which could be exposed if response data is cached and then shared publicly.

Reproduction

In versions of the 'gh' package prior to 1.5.0, make a request to the GitHub API that includes an Authorization header, such as a request that uses a personal access token (PAT). The response will include the Authorization header, exposing the token. This can be verified by checking the response data for the presence of the Authorization header after making the request.

Remediation

Users can update to 'gh' package version 1.5.0 or later, where this vulnerability has been addressed.

Added: Aug 3, 2025, 6:17 PM
Updated: Aug 3, 2025, 6:17 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.4
remediation
0.0
relevance
0.3
threat
4.8
urgency
2.9
incentive
5.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.