fix(deps): update dependency @octokit/request-error to v5 [security] #2480
+84
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.0.0
->^5.0.0
GitHub Vulnerability Alerts
CVE-2025-25289
Summary
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the processing of HTTP request headers. By sending an authorization header containing an excessively long sequence of spaces followed by a newline and "@", an attacker can exploit inefficient regular expression processing, leading to excessive resource consumption. This can significantly degrade server performance or cause a denial-of-service (DoS) condition, impacting availability.
Details
The issue occurs at line 52 of iterator.ts in the @octokit/request-error repository.
The vulnerability is caused by the use of an inefficient regular expression in the handling of the
authorization
header within the request processing logic:The regular expression
/ .*$/
matches a space followed by any number of characters until the end of the line. This pattern is vulnerable to Regular Expression Denial of Service (ReDoS) when processing specially crafted input. Specifically, an attacker can send anauthorization
header containing a long sequence of spaces followed by a newline and "@", such as:Due to the way JavaScript's regular expression engine backtracks while attempting to match the space followed by arbitrary characters, this input can cause excessive CPU usage, significantly slowing down or even freezing the server. This leads to a denial-of-service condition, impacting availability.
PoC
The gist of PoC.js
result:
Impact
Vulnerability Type & Impact:
This is a
Regular Expression Denial of Service (ReDoS) vulnerability
, which occurs due to an inefficient regular expression (/ .*$/
) used to sanitize theauthorization
header. An attacker can craft a malicious input that triggers excessive backtracking in the regex engine, leading to high CPU consumption and potential denial-of-service (DoS).Who is Impacted?
authorization
headers are at risk, especially those processing a large volume of authentication requests.Release Notes
octokit/request-error.js (@octokit/request-error)
v5.1.1
Compare Source
Bug Fixes
v5.1.0
Compare Source
Bug Fixes
@octokit/types
to v13 (3af20bd)Features
v5.0.1
Compare Source
Bug Fixes
v5.0.0
Compare Source
Bug Fixes
BREAKING CHANGES
@octokit/types
to v11v4.0.2
Compare Source
Bug Fixes
v4.0.1
Compare Source
Bug Fixes
v4.0.0
Compare Source
Continuous Integration
BREAKING CHANGES
Drop support for NodeJS v14, v16
ci: stop testing against NodeJS v14, v16
ci: stop testing against NodeJS v14, v16
ci: stop testing against NodeJS v14, v16
ci: stop testing against NodeJS v14, v16
ci: stop testing against NodeJS v14, v16
v3.0.3
Compare Source
Bug Fixes
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.