Vulnerabilities/

@octokit/request has a Regular Expression in fetchWrapper that Leads to ReDoS Vulnerability Due to Catastrophic Backtrac

Severity:
Medium

Description

The regular expression /<([^>]+)>; rel="deprecation"/ used to match the link header in HTTP responses is vulnerable to a ReDoS (Regular Expression Denial of Service) attack. This vulnerability arises due to the unbounded nature of the regex’s matching behavior, which can lead to catastrophic backtracking when processing specially crafted input.

Recommendation

Update the @octokit/request package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@octokit/request
Anything's wrong? Let us know Last updated on February 18, 2025

This issue is available in SmartScanner Professional

See Pricing