Vulnerability library
Security checkJanuary 16, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpm@octokit/request

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): **>= 1.0.0, < 8.4.1 >= 9.0.0-beta.1, < 9.2.1**
  • Patched version(s): **8.4.1 9.2.1**

References

Could your website be exposed too?

SmartScanner can check your website for @octokit/request has a Regular Expression in fetchWrapper that Leads to ReDoS Vulnerability Due to Catastrophic Backtrac and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 16, 2026